大约有 134 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0036 秒)
Laya_社区(98) Laya2.0_文档(19) Laya3.0_文档(11) Laya3.0_api(2) Laya2.0_api(2) Laya2.0_示例(1) Laya_示例(1)
...e.currentTarget.response; self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` 这个例子是在worker中进行加载文件,加载完毕传给主进程,运行这个例子可以在浏览器控制台看到数据输出来。 `var myWorker = new Worker("m...
来源: Laya2.0_文档 发布时间: 20210715
...e.currentTarget.response; self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` 这个例子是在worker中进行加载文件,加载完毕传给主进程,运行这个例子可以在浏览器控制台看到数据输出来。 `var myWorker = new Worker("m...
来源: Laya2.0_文档 发布时间: 20210715
...r.IMAGE }, { url: "ui/BG/load.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }, { url: "res/atlas/ui.atlas", type: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded)); Laya.loader.create("ui/BG/play-bg.png", Laya.Handl...
来源: Laya_社区 发布时间: 20181105
... or false return false; } function LoadRes() { var resArray = [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComple...
来源: Laya_社区 发布时间: 20170228
...a - 知识达人 赞同来自: 改下这行代码: Laya.loader.load("res/atlas/Skill/Skill_1001.json",Handler.create(this,onAssetLoaded),null,Laya.Loader.ATLAS); 你没有给资源加载完成的回调,资源的后缀也错了,应该是Loader.ATLAS,你少了一个Loader 多个图集的话...
来源: Laya_社区 发布时间: 20171227
...coding:encoding}中readyUrl用的是绝对路径(如http://10.10.10.69/res/atlas.comp.png),而不是相对于项目根目录的相对路径(如res/atlas/comp.png),导致的结果就是在查找缓存文件中有数据时(MiniFileMgr.getFileInfo(url)),部分地方用的绝对路径(MiniImage中)...
来源: Laya_社区 发布时间: 20180207
...享 微博 QZONE 微信 阿龙 赞同来自: [error]Failed to load: res/atlas/comp.atlas myLayaPricticeAll.max.js:16597:5 lose skin comp/button.png Error: WebGL warning: texSubImage2D: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow....
来源: Laya_社区 发布时间: 20171120
...e.currentTarget.response; self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` 这个例子是在worker中进行加载文件,加载完毕传给主进程,运行这个例子可以在浏览器控制台看到数据输出来。 `var myWorker = new Worke...
来源: Laya2.0_文档 发布时间: 20210715
... 肯定对这个图集做了预加载了 var resArray = [ {url:"res/atlas/comp.json", type: Laya.Loader.ATLAS}, {url:"res/atlas/assets.json", type: Laya.Loader.ATLAS} ]; Laya.loader.load(resArray, Laya.Handler.create(null,LoadResComplete)); cuixueying • 2017-03-21 16:15 好的...
来源: Laya_社区 发布时间: 20170317
...ALE_NOSCALE; // Laya.stage.size(6000, 6000); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(sprite); } 上面这段代...
来源: Laya_社区 发布时间: 20170803