• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,319 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0070 秒)

1191. 进度条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 46%]

...加载进度条资源,图片资源来自“引擎API使用示例” Laya.loader.load(["resources/res/ui/progressBar.png", "resources/res/ui/progressBar$bar.png"]).then(() => { // 创建进度条 this.progressBar = new Laya.ProgressBar("resources/res/ui/progressBar.png"); this.progressBar.pos(10...

来源: Laya3.0_文档 发布时间: 20251010

1192. 限制区域拖动效果,为什么会无法限制呢? [ 46%]

...ad), Laya.ResourceVersion.FILENAME_VERSION);  function beginLoad() { Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); }  function onLoaded() { Laya.stage.addChild(new GolfMainUI()); }   附件 : --> 2018-06-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

来源: Laya_社区 发布时间: 20180627

1193. ComboBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 46%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var cb = createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } function cre...

来源: Laya2.0_文档 发布时间: 20210714

1194. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 46%]

... = ["resources/res/ui/dialog (1).png", "resources/res/ui/close.png"]; Laya.loader.load(this.assets).then( ()=>{ this.onSkinLoadComplete(); } ); } private onSkinLoadComplete(e: any = null): void { this.dialog = new Laya.Dialog(); var bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.add...

来源: Laya3.0_文档 发布时间: 20230303

1195. 图片使用pivotX参数后,再对图片添加遮罩会出现效果不对。 [ 46%]

...showall";         Laya.stage.bgColor = "#232628";         Laya.loader.load("../../res/bg2.png", Handler.create(this, setup));     })();     function setup()     {         var bg = new Sprite();         bg.loadImage("../../res/bg2.png");         Laya.stage.addCh...

来源: Laya_社区 发布时间: 20170826

1196. 引擎 TiledMap 居然不支持图块翻转 [ 46%]

...450;             this._gridHeight = 450;             this._jsonLoader = null;             this._loader = null;             this._tileSetArray = [];             this._currTileSet = null;             this._completeHandler = null;             this._mapRect = ne...

来源: Laya_社区 发布时间: 20220627

1197. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 45%]

...Enter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this...

来源: Laya_社区 发布时间: 20180905

1198. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 45%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.skin, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { var cb: ComboBox = this.createComboBox(this.skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.a...

来源: Laya2.0_文档 发布时间: 20210715

1199. 国际化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

...使用的方式为: let myI18n: Laya.Translations; myI18n = await Laya.loader.load("editorResources/i18nSettings.i18ns"); console.log(myI18n.t("a")); 在很多情况下,如果只是代码里用到的一些小量国际化的支持,并不想创建多个json文件,那么也有全代码的方法...

来源: Laya3.0_文档 发布时间: 20251010

1200. 运行器在手机上一打开就崩溃 [ 45%]

... 07-22 15:28:49.398: E/AndroidRuntime(13400): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134) 07-22 15:28:49.398: E/AndroidRuntime(13400): at java.lang.ClassLoader.loadClass(ClassLoader.java:379) 07-22 15:28:49.398: E/AndroidRuntime(13400): at java.lang.ClassLoader.loadCla...

来源: Laya_社区 发布时间: 20190722