大约有 105 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
同时加载多个.js文件 Laya.loader.load("js/daTing.js", Handler.create(this, onAssetLoadedDT), null, Loader.TEXT); 同时加载多个么? 2017-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - ...
来源: Laya_社区 发布时间: 20171017
...ar assets:Array = []; assets.push( { url:"protobuf/user.proto", type:Loader.TEXT } ); assets.push( { url:"protobuf/bag.proto", type:Loader.TEXT } ); Laya.loader.load(assets, Handler.create(this, onAssetsLoaded)); 首先确认下类型是为TEXT吗,如果这样写就是...
来源: Laya_社区 发布时间: 20161223
加载问题,已经解决,有遇到加载问题的可以看看 Laya.loader.create(res, Laya.Handler.create(this, function(obj){ this.loadFinish(obj,res); })); Laya2.3.0 微信小游戏 如果在create回调里面再去Laya.loader.create,有的手机有概率就是加载失败,平均10000人...
来源: Laya_社区 发布时间: 20200120
UI相关问题 Laya.Loader.getRes请教 Laya.loader.load("res/atlas/games/game_13/image.atlas", Handler.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但...
来源: Laya_社区 发布时间: 20180326
...JS 如: var atlas:Object[] = [{ url: "res/atlas/choujiang.js", type: Loader.TEXT }, { url: "res/atlas/choujiang.json", type: Loader.ATLAS }, ]; Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this...
来源: Laya_社区 发布时间: 20180511
使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 引擎版本:2.0.0 问题描述: 在1.7.*下预加载位图字体文件没问题,但升级到2.0.0后,使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时...
来源: Laya_社区 发布时间: 20190225
...res/3d/Player.zip,则使用方法为[code]// Laya 2.x及以下版本 Laya.loader.create([{ url: "res/3d/Player.zip", type: LayaZip.ZIP}])[/code][code]// Laya3.x版本 Laya.loader.load([{ url: "res/3d/Player.zip", type: LayaZip.ZIP}])[/code] 加载资源使用:[code]// Laya 2.x及以下版本 let pla...
来源: Laya_社区 发布时间: 20230316
...的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.d...
来源: Laya2.0_文档 发布时间: 20210715
...ZONE 微信 Monica - 知识达人 赞同来自: 改下这行代码: Laya.loader.load("res/atlas/Skill/Skill_1001.json",Handler.create(this,onAssetLoaded),null,Laya.Loader.ATLAS); 你没有给资源加载完成的回调,资源的后缀也错了,应该是Loader.ATLAS,你少了一个Loader ...
来源: Laya_社区 发布时间: 20171227
Laya.loader.load和new Laya.Loader区别? let json:any = Laya.loader.getRes(this._data.url); if(json) { return; } let load:Laya.Loader = new Laya.Loader(); 这么写 频繁加载会一直报资源重复加载 但是我 Laya.loader.load(xxxxxxxxx) 频繁加载就没事 请问这两者的区别 我...
来源: Laya_社区 发布时间: 20171213