大约有 654 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
Laya_社区(598) Laya2.0_文档(19) Laya3.0_文档(12) Laya2.0_示例(8) Laya_示例(8) Laya3.0_api(5) laya_api(2) Laya2.0_api(2)
关于资源加载Laya.loader的问题 目前laya加载资源一般是用这种处理方式: Laya.loader.load(res, new Handler(caller, callBack)); 这里隐藏了一个问题,就是caller 被 Laya.loader 内某个成员持有引用,加载完成触发callBack后才释放。 如果网络较差...
来源: Laya_社区 发布时间: 20180510
...么加载进度回调只调用了一次。下面有代码,求解答 Laya.loader.load( // 资源 [{url:'res/atlas/comp.json',type:Laya.Loader.ATLAS}].concat(loadArr), // 加载完成回调 Laya.Handler.create(null,function(){ var logintest = new loginTestView().ini...
来源: Laya_社区 发布时间: 20170331
如何解析json文件并获取某对象值? private jsonParse() { Laya.loader.load("res/atlas/resTest0.json", Handler.create(this, this.onLoaded), null, Loader.JSON); } private onLoaded() { var json : JSON = Laya.Loader.getRes("res/atlas/resTest0.json"); var jsTx = JSON.stringify(json); } 已经...
来源: Laya_社区 发布时间: 20171016
... TypeError: Cannot read property 'btCollisionObject' of undefined 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小游戏与加载图片时不会触发erroe事件 unity到导出场景加载时抛异常,不知所措 2.7.1 加载的ttf不生效 小游戏项目 加载...
来源: Laya_社区 发布时间: 20180322
...EFFECT_PATH_3D+url; var itemComplete:Sprite3D = Laya.loader.getRes(_path); if(itemComplete == null || itemComplete.loaded == false){ var groupName:String = null; if(isGroup == true){ ...
来源: Laya_社区 发布时间: 20180601
...ang 赞同来自: 1.设置baseUrl为:http://image.xxx.com/ 2. 使用Laya.loader.load("1.png",Laya.Handler.create(this,this.complete)); 3.//加载完成回调处理 complete():void{} 2018-05-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...
来源: Laya_社区 发布时间: 20170220
...yaair中类的大小写规则有没有基本的说明文档 比如: 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 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170316
...小游戏下图片错乱 static preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console....
来源: Laya_社区 发布时间: 20180609
...ont1Req = new Promise((resolve => { Laya.loader.load("res/fonts/OPPOSANS-R.TTF", Laya.Handler.create(this, (success: boolean) => { if (!success) { console.error("OPPOSANS-R ttf 字...
来源: Laya_社区 发布时间: 20201104
...Laya.Stage.ALIGN_MIDDLE; Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } fun...
来源: Laya_社区 发布时间: 20170803