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

大约有 165 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0035 秒)

101. Laya.loader Progress回调形同虚设 [ 67%]

...this, onLoaded),Handler.create(this, onProgress)); //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded),Handler.create(this, onProgress)); } private function onProgress(v:Number):void { trace("onProgress",v); }    不管添加多少资源,onProgress都只会调用一次  ...

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

102. UI界面加载有哪些回调方法可用 [ 67%]

UI界面加载有哪些回调方法可用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoad...

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

103. QQ小游戏开发者工具环境下,已经被本地缓存的图片的加载回调不触发的问题 [ 67%]

...工程做的测试,加上MiniAdapter.init();然后本地缓存不支持.atlas文件,我就改成加载json文件,所有的改动就这些。   因为Laya文档里面没有找到QQ小游戏的指引,又看到QQ小游戏文档里面写的微信小游戏项目可以直接在QQ小游戏环境...

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

104. 通用发布 · LayaAir3.0文档 · LAYABOX [ 67%]

...的代码拆分到了分包script文件夹中。 三、打包图集 图集(Atlas)是游戏开发中常见的一种美术资源,通过IDE发布流程将多张图片合并成一张大图,并通过atlas格式的文件存放原始图片资源信息。 图3-1就是采用LayaAirIDE打包好的一张pn...

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

105. 关于layaair中类的大小写规则有没有基本的说明文档 [ 66%]

...小写规则有没有基本的说明文档 比如: Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(null, onLoaded), null, Laya.Loader.ATLAS); Laya.loader.load(resArray, Laya.Handler.create(null,onLoaded)); loader与handler   2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE ...

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

106. Dialog.show 的 showEffect参数在微信真机上的问题 [ 66%]

...信小游戏上显示一个Dialog 代码如下: Laya.loader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但...

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

107. 加载时间轴动画报错 [ 66%]

...画报错 代码如下: this.ani = new Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe));   function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); }   运行时报 TypeError:Cannot read property '...

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

108. 预加载结束之后还是报lose skin [ 65%]

...之后还是报lose skin private loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetL...

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

109. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 65%]

...件需要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢

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

110. 鼠标穿透问题 [ 64%]

... Stage.ALIGN_MIDDLE; Laya.loader.load([{url:"image/comp.json", type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { createList(); createItems(); createLoading(); _list.addChild(_loadingBg); Laya.stage.addChild(_list); } protected function createList():void { _li...

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