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

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

231. 子容器的事件问题 [ 61%]

...r引擎 子容器的事件问题 // 程序入口 Laya.init(800, 800); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); let vhvt: Vi...

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

232. 有偿解答 Laya致命问题 -预加载,进度问题 [ 61%]

... Laya致命问题 -预加载,进度问题 使用情况描述: 使用Laya.loader.load加载2d声音资源使用 Laya.loader.create加载3D场景模型资源 问题描述: 预加载效果不明显(每次进入时,加载进度都非常慢,需要花半分钟加载,20mb的资源)加载模型...

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

233. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 61%]

...Laya.View.regComponent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/cre...

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

234. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 61%]

...72:13)     at http://127.0.0.1:53462/game/code.js:97630:17     at Laya.loader.load.Handler.create (http://127.0.0.1:53462/game/code.js:102231:13)     at Handler.__proto.runWith (http://127.0.0.1:53462/game/code.js:711:59)   查看了应该是微信自带的浏览器内核不支持Function.app...

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

235. 生成的粒子特效怎么设置colorComponentInter无效? [ 61%]

...uper(this); letter = letter; this.loadImage('res/jiezou/wenzi2.png'); Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } function onAssetsLoaded(settings) { settings.colorComponentInter = true; sp = new Particle2D(settings); sp.emitter.start(); sp.pl...

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

236. 请教:粒子的官方教程中的配置文件是从哪里得到了? [ 61%]

...从哪里得到了? 在学习粒子教程代码时,有一句是 Laya.loader.load("res/particles/particleNew.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON);   其中这个 res/particles/particleNew.part文件是怎么获得的?谢谢   如下图 附件 : --> 2018-03-17 添...

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

237. 【vivo】2d图集加载不上 [ 61%]

【vivo】2d图集加载不上 Laya.loader.load(url,Handler.create(this,onLoadComplete),null,Loader.ATLAS); 用Loader.ATLAS图集类型加载失败 附件 : --> myLaya.zip 2019-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

238. JS中利用New创建出来的对象相应内存,如何主动去释放? [ 61%]

... (function(LayaSample){  (function(){    Laya.init(640,1027);    Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS)})(); function onLoaded(){  var karaok = new Karaok(); // new出来的内存 如何主动销毁? } })(window.LayaSample || (window...

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

239. 关于as版的Animation.createFrames()不能工作? [ 61%]

...ite; import laya.display.Stage; import laya.utils.Handler; import laya.net.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Lay...

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

240. ts版本,开发微信小游戏,wxlocal的问题,,, [ 61%]

...a.URL.basePath=ftp地址 然后去加载wxlocal里面的资源,   Laya.loader.load(arr, Handler.create(this, this.onLoadComplete),Handler.create(this, this.onLoading, null, false)); 发现并没有去加载这个资源,加断点发现一样走到了URL.formatURL 这个函数里面, 然后...

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