大约有 2,660 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0077 秒)
Laya_社区(2342) Laya2.0_文档(106) Laya3.0_文档(58) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...要代码如下 let loaditem = [{ url: "test.zip", type: Laya.Loader.PLFB }] Laya.loader.load(loaditem, Laya.Handler.create(this, function (res) { let item = 'res/layabox.png' let getres = Laya.loader.getRes(item...
来源: Laya_社区 发布时间: 20210604
... { url: this.zombie_anim_path4 }, { url: this.zombie_anim_path5 }, ]; Laya.loader.retryNum = 0; Laya.loader.create(res3DArr, Laya.Handler.create(this, this.onRes3DLoaded), null); 结论:onLoad时checkNext触发endLoad,会重置customParse属性,onError的时候没有触发这个逻辑,导...
来源: Laya_社区 发布时间: 20180305
更新到1.5.4的问题 用Laya.loader加载报错:RangeError: Maximum call stack size exceeded 出现情景:关卡选择界面进入到游戏界面时,用Laya.loader加载了很多游戏资源,游戏结束后,返回到关卡选择界面前,通过Laya.loader.clearres接口清理了游戏相...
来源: Laya_社区 发布时间: 20161213
...tage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.flag = true; Laya.loader.load([monkey1Str, monkey2Str], Laya.Handler.create(this, this.onAssetsLoaded)); } onAssetsLoaded() { monkey1Res = Laya.loader.getRes(monkey1Str), monkey2Res = Laya.loader.getRes(monkey2Str); this.ape = new Laya.Sprite(...
来源: Laya2.0_示例 发布时间: 20251209
...场景切换的时候 如何把当前场景下的资源销毁掉呢 Laya.loader.clearTextureRes("res/fighter.atlas") 这一步 销毁的是图集所保护的所有资源吗?还是说 需要 把所有用到的小图地址都销毁一遍 比如 Laya.loader.clearTextureRes("res/re1.jpg"); Laya.loader...
来源: Laya_社区 发布时间: 20171122
...动画失败 请教下微信小游戏的内存和数据缓存? 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小游戏只缓存图片和声音 调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 关...
来源: Laya_社区 发布时间: 20180718
...oadArr:Array = new Array; loadArr= [{url: "res/atlas/hall_new.json", type: Loader.ATLAS}, // {url: "res/atlas/help.json", type: Loader.ATLAS}, // {url: "res/atlas/shop.json", type: Loader.ATLAS}, // {url: "shmjAssets/扣牌文字背景.png", type: Loader.IMAGE}, //这张图有问题。 ]; Laya.loa...
来源: Laya_社区 发布时间: 20180301
...下: var resources = [ { url: "res/atlas/images/guide.atlas", type: Laya.Loader.ATLAS }, { url: "config/data.txt", type: Laya.Loader.BUFFER }]; Laya.loader.load(resources, Handler.create(this, this.onComplete), Handler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.lo...
来源: Laya_社区 发布时间: 20180816
...成的回调里去获取你的texture并drawTexture // 程序入口 import Loader = Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; class GameMain{ constructor() { Laya.init(600,400); this.hahaha(); } private hahaha(): void { var assets: Array<any> = []; assets.push(...
来源: Laya_社区 发布时间: 20170329
...我们可以用加载器预加载。 2D游戏资源我们是用**Laya.loader.load()**方法预加载,而3D资源必须用Laya.loader.create()这个方法。在加载完成后,我们就可以直接使用**Laya.loader.getRes()**这个方法来获取加载完成的资源。请参考的相关的...
来源: Laya2.0_文档 发布时间: 20210715