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

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

91. 关于资源版本号的问题咨询 [ 67%]

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

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

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

93. 微信小游戏里面开放数据域的资源加载问题 [ 66%]

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

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

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

95. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 66%]

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

96. webgl 下当对象子显示对象存在panel且panel有子集时,旋转此显示对象会导致此显示对象的同级对象消失!(1.7.10beta) [ 65%]

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

97. .gitignore 文件,忽略哪些些比较好? [ 65%]

...map生成的json文件里data是这种格式,地图显示有误 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小程序 发布后缺少app.json文件 微信小游戏中访问带空格的文件出错 粒子系统官例里载入的那些json文件是用什么软件...

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

98. 微信小游戏利用开放域好友关系链做排行榜 [ 65%]

...代码: 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

99. common.Tool类在哪里 [ 65%]

...里?这个类怎么没了?我需要引入什么类库么? 请问Laya.loader.load资源缓存在哪里?能不能把这个缓存目录里的资源加入NativeFile白名单? IDE"代码模式"下,向前向后导航功能在哪里? layair 两点之间的距离api在哪里 layaAirIde 的导...

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

100. 使用了模板中的confirmBox,可运行时提示取不到template下的按钮图片! [ 64%]

...提交 2 个回复 hamletborn 赞同来自: OK了,这个是需要  Laya.loader  进行预加载的! 2017-07-02 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 好的,有问题再联系~ 2017-07-02 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该...

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