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

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

191. 关于资源加载Laya.loader的问题 [ 76%]

关于资源加载Laya.loader的问题 目前laya加载资源一般是用这种处理方式: Laya.loader.load(res, new Handler(caller, callBack)); 这里隐藏了一个问题,就是caller 被 Laya.loader 内某个成员持有引用,加载完成触发callBack后才释放。 如果网络较差...

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

192. 为什么加载进度回调只调用了一次。下面有代码,求解答 [ 76%]

...么加载进度回调只调用了一次。下面有代码,求解答 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

193. 如何解析json文件并获取某对象值? [ 76%]

如何解析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

194. protobuffer每次都需要加载一次proto么?Laya.Browser.window.protobuf.load(string,function) [ 76%]

... TypeError: Cannot read property 'btCollisionObject' of undefined 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小游戏与加载图片时不会触发erroe事件 unity到导出场景加载时抛异常,不知所措 2.7.1 加载的ttf不生效 小游戏项目 加载...

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

195. 3d特效克隆时,在手机会现卡顿情况,特效资源已经提前在加载 [ 76%]

...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

196. 怎么加载网络上的图片 [ 76%]

...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

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

...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

198. 仅在Android微信小游戏下图片错乱 [ 76%]

...小游戏下图片错乱 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

199. Laya2.6.0 升级至Laya2.8.0 Native环境 加载ttf 字体不生效 [ 76%]

...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

200. 粒子中引用的图片能合图吗 [ 76%]

...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