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

大约有 165 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0033 秒)

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

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

42. IOs使用手动删除本地资源再次进去加载问题 [ 78%]

...ion/16878 这个问题 function beginLoad(){ var res_array = [ {url : "res/atlas/loading.atlas", type : Laya.Loader.ATLAS}, {url : "res/atlas/person.atlas", type : Laya.Loader.ATLAS}, {url : "loading/progress.png", type : Laya.Loader.IMAGE}, {url : "loading/progress$bar.png", type : Laya.Loader.IMAG...

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

43. js版本 layaide ui组件发布后 res下没有对应的.atlas文件生成 [ 78%]

js版本 layaide ui组件发布后 res下没有对应的.atlas文件生成 1 在界面编辑器 编辑组件 (jiaoyiqu.ui)   2 发布后 发现res/atlas/下面只有个 comp.atlas 并且 layaUI.max.all.js里面只有个TestPageUI   如果我插入 new TestPageUI() 显示出的是这个   P...

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

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

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

45. worker如何使用 [ 77%]

...rLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, () => { alert("onLoaded!"); }), null, Laya.Loader.ATLAS, 1, true, null, false, true);   useWorkerLoader参数设为true后,文件加载不成功? 附件 : --> Demo.zip 2019...

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

46. Laya.Loader.getRes请教 [ 77%]

UI相关问题 Laya.Loader.getRes请教 Laya.loader.load("res/atlas/games/game_13/image.atlas", Handler.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但...

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

47. 无法正常运行官网中的示例代码 [ 77%]

...oad resource: net::ERR_FILE_NOT_FOUND [warn]Retry to load: D:/demo/bin/res/atlas/comp.json Failed to load resource: net::ERR_FILE_NOT_FOUND [error]Failed to load: D:/demo/bin/res/atlas/comp.json 2017-03-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

48. [LayaAir3]资源未清理干净 [ 77%]

.../chest_bg.png (4) [6, Texture, 7, Texture2D] loader http://localhost:18090/atlas/comp/img_bg.png (4) [6, Texture, 7, Texture2D] close --------------------------------gc 6000----------------------------------- loader http://localhost:18090/resources/chest_bg.png (2) [6, Texture] loader http://localho...

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

49. Panel滚动条滑块位于最下方 [ 77%]

...1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new Panel(); panel.vScrollBarSkin="comp/vscroll.png"; pa...

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

50. 如何用代码控制panel的vscroll滚动幅度 [ 77%]

... { Laya.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { //panel 切记设置宽高,否则panel不显示 var panel:Panel=new Panel(); panel.size(300,300); panel.pos(100,100); p...

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