大约有 489 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0094 秒)
Laya_社区(403) Laya2.0_文档(47) Laya3.0_api(22) Laya3.0_文档(8) laya_api(3) Laya2.0_示例(3) Laya2.0_api(3)
...源的进度进行显示,下面的编码为就是错误的。 1. `Laya.loader.load(urls, Laya.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading));` 在上面的代码中,使用`Laya.Handler.create(this,this.onLoading)`返回的回调方法,是要处理progress...
来源: Laya2.0_文档 发布时间: 20210715
...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
...ZONE 微信 Monica - 知识达人 赞同来自: 改下这行代码: Laya.loader.load("res/atlas/Skill/Skill_1001.json",Handler.create(this,onAssetLoaded),null,Laya.Loader.ATLAS); 你没有给资源加载完成的回调,资源的后缀也错了,应该是Loader.ATLAS,你少了一个Loader ...
来源: Laya_社区 发布时间: 20171227
...请: 与内容相关的链接 提交 2 个回复 Yangcy 赞同来自: Laya.loader.load("abc.json", Handler.create(this, onAssetLoadedSound), Handler.create(this, progressHandler), Loader.SOUND); 第一次加载出来: [list=none] [*]0: {column: "0", duration: "0", mode: "点", time: "30...
来源: Laya_社区 发布时间: 20181122
...度进行显示,下面的编码为就是错误的。 ```javascript Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading)); ``` 在上面的代码中,使用`Handler.create(this, onLoading)`返回的回调方法,是要处理progress加载进度事件,...
来源: Laya2.0_文档 发布时间: 20210715
...的地方,只能在每次创建的时候加载字体! 可以通过Laya.loader.load来加载字体,但是这样会造成回调或者promise,使得整个程序都陷在异步里 可以在初始场景加载各种资源,但是问题是我要单独测试某个场景的时候,加载字体就...
来源: Laya_社区 发布时间: 20250910
...let resArr = [ {url:"wxlocal/enemy.png",type:Laya.Loader.IMAGE}, {url:"wxlocal/bg2.jpg",type:Laya.Loader.IMAGE} ]; Laya.loader.load(resArr, Laya.Handler.create(null, onLoaded)); function onLoaded(): void { Laya.URL.basePath ="https://xxx....
来源: Laya_社区 发布时间: 20191122
...音频文件放在服务器端,在微信小游戏中,不管使不使用Loader来加载,都会有这个问题,把音频文件放到本地,再使用Loader来加载就可以了 如果能加载网络音频,能否告知怎么使用? //预加载声音 Laya.loader.load(BOX_OVER, Laya.Handler....
来源: Laya_社区 发布时间: 20180707
...行域 的详解 如何定义动画播放过某帧后的回调函数 Laya.loader.create 进度回调函数执行两次 Warning!,this class[MiniAdpter] already exist: Object {init: } js调as函数 undifine 怎么停止正在运行Laya.timer.frameLoop的回调函数 load 加载完图集 回调函数...
来源: Laya_社区 发布时间: 20180913
...如果是图片或者声音类型,不会触发加载错误事件 用Laya.loader批量加载图片或者声音并指定加载类型时,如果加载错误,并不会触发错误事件。 Laya.loader.on(Laya.Event.ERROR, this, function(){ console.log("err"); }); Laya.loader.load([{url:"res/gene...
来源: Laya_社区 发布时间: 20180926