大约有 118 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0043 秒)
...现在manifest.json中。此时在游戏中加载完atlas文件后会执行Loader.as的onLoaded中的如下代码 }else{ for (name in frames) { obj = frames[name];//取对应的图 tPic = pics[obj.frame.idx ? obj.frame.idx : 0];//是否释放 [i][b]url = URL.formatURL(directory + name); [/b][/i] cac...
来源: Laya_社区 发布时间: 20180415
....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实...
来源: Laya2.0_文档 发布时间: 20210715
...nction.MiniFileMgr.readFile (http://127.0.0.1:63435/game/op ... 418:14) at Loader.__proto.load (http://127.0.0.1:63435/game/op ... 115:18) at LoaderManager.__proto._doLoad (http://127.0.0.1:63435/game/op ... 296:10) at LoaderManager.__proto._next (http://127.0.0.1:63435/game/op ... 269:26) at Loader...
来源: Laya_社区 发布时间: 20180507
....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():...
来源: Laya2.0_文档 发布时间: 20210715
...JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onCompl...
来源: Laya_社区 发布时间: 20190307
... = Laya.Stage.ALIGN_TOP; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注...
来源: Laya_社区 发布时间: 20170829
...map生成的json文件里data是这种格式,地图显示有误 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小程序 发布后缺少app.json文件 微信小游戏中访问带空格的文件出错 粒子系统官例里载入的那些json文件是用什么软件...
来源: Laya_社区 发布时间: 20171211
...代码: import Label = Laya.Label; import Handler = Laya.Handler; import Loader = Laya.Loader; class GameBootstrap{ public constructor(){ this.init(); } private init():void{ //初始化微信小游戏 Laya.MiniAdpter.ini...
来源: Laya_社区 发布时间: 20180529
...里?这个类怎么没了?我需要引入什么类库么? 请问Laya.loader.load资源缓存在哪里?能不能把这个缓存目录里的资源加入NativeFile白名单? IDE"代码模式"下,向前向后导航功能在哪里? layair 两点之间的距离api在哪里 layaAirIde 的导...
来源: Laya_社区 发布时间: 20180327
...提交 2 个回复 hamletborn 赞同来自: OK了,这个是需要 Laya.loader 进行预加载的! 2017-07-02 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 好的,有问题再联系~ 2017-07-02 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该...
来源: Laya_社区 发布时间: 20170702