• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 730 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)

331. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 69%]

...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

332. ani如何实现预加载呢? [ 69%]

...的情况下 动画只会播放一半.  附代码: Laya.loader.load("res/atlas/res.json", Laya.Handler.create(this, onLoaded), Laya.Handler.create(this, onLoading), Laya.Loader.ATLAS); 我是在onLoaded里面用游戏资源的.... 2017-07-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

来源: Laya_社区 发布时间: 20170701

333. LayaUI中的input组件不显示 [ 69%]

...ge.SCREEN_HORIZONTAL; loadres(); function loadres(){ var res=[ {'url':'res/atlas/comp.json'} ] Laya.loader.load(res,Laya.Handler.create(this,Main)); } function Main(){ Laya.stage.addChild(new loginUI()); } })();   附件 : --> 2017-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

来源: Laya_社区 发布时间: 20171123

334. 200多张1920*1080的图片,想打包,一直不成功 [ 69%]

...and failed: "D:\layaair\layaairIde\resources\app\out\vs\layaEditor\libs\TP\atlas-generator" -S 2048000 -s 1920 "C:\Users\john\Desktop\tmp\tmp" -o "C:\Users\john\Desktop\tmp\tmp" --dataFormat atlas --scale 0.5 --force -c 附件 : --> 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

来源: Laya_社区 发布时间: 20180307

335. 技术文档中的示例js运行报错 [ 69%]

...ya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() function onLoaded() { var cMask = new maskDemoUI() Laya.stage.addChild(cMask) } })()   附件 : --> 2018-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

来源: Laya_社区 发布时间: 20180810

336. Laya.loader.create 和 Laya.loader.load 这两个有什么区别呢 [ 69%]

...第一个selectIndex正常,第二个不正常 dispone和destory的区别 atlas目录下.json文件与.atlas的区别 问题状态 最新活动: 2017-05-18 14:16 浏览: 4784 关注: 2 人 zfree • 2017-05-18 15:11 这样在预处理的时候不能统一处理我们还需要封装个接口,建...

来源: Laya_社区 发布时间: 20170518

337. 百度小游戏 内存不断增大的情况 [ 69%]

...onConfigLoaded=function(){ Laya.init(600,400); Laya.loader.load([{url:"res/atlas/comp.json",type:"atlas"}],Handler.create(this,this.onLoadUi)); } __proto.onLoadUi=function(){ Laya.timer.loop(100,this,this.onLoaded); } __proto.onLoaded=function(){ if(this.isOpen){ return; } this.isOpen=true; var test...

来源: Laya_社区 发布时间: 20190517

338. IDE中的工具TileAtlasPacker,blackList, includeList参数能支持目录吗 [ 69%]

IDE中的工具TileAtlasPacker,blackList, includeList参数能支持目录吗 都以文件名作为参数的话,感觉很有可能要超过命令行允许的长度了,而且管理起来也不方便。 2016-09-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

来源: Laya_社区 发布时间: 20160929

339. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 69%]

...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

340. Laya.loader Progress回调形同虚设 [ 69%]

...this, onLoaded),Handler.create(this, onProgress)); //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded),Handler.create(this, onProgress)); } private function onProgress(v:Number):void { trace("onProgress",v); }    不管添加多少资源,onProgress都只会调用一次  ...

来源: Laya_社区 发布时间: 20180428