大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0080 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...态! 重现几率为必现 Laya.Sprite3D.load(name, Laya.Handler.create(this, (data:Laya.Sprite3D)=>{ if(data){ if(data.destroyed){ return; } } 2018-11-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_A...
来源: Laya_社区 发布时间: 20181124
...0/shoot/v2/img/assets/assets.json', type : Loader.ALTAS }], Handler.create(this, function () { var _getRes = Laya.loader.getRes('bg-toolbar.png'); console.log(_getRes); }));然后log出来是undefined的,请问如何破?还有,对于图集的存放位置有什么要求吗(我不是用ide开...
来源: Laya_社区 发布时间: 20170223
...drawCir.pos(200,200); Laya.stage.addChild(drawCir); drawCir.on(Event.CLICK,this,onDrawCirClick); 2017-09-05 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 浪货界扛把子 相关问题 分享:自定义事件派发与侦听(A页面...
来源: Laya_社区 发布时间: 20170905
...prite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onComplete), Laya.Handler.create(this, onLoading)); } function onLoading(progress){ console.log("加载进度: " + progress); } function onComplete(){ console.log('onComplete'); wx.showModal({ title: '提示', content: ...
来源: Laya_社区 发布时间: 20180426
白鹭转腊鸭一周想吐槽的好多 以前白鹭是在TS文件this.skinname="" 就直接绑定皮肤文件 现在直接是继承UI类 这样我有10个UI类 分别有不同的子类继承 但是他们有相同的方法 怎样提取出来公用? 之前在白鹭就直接写在父类可以了 ...
来源: Laya_社区 发布时间: 20180416
...l){ Laya.SoundManager.playMusic(url, loop, Laya.Handler.create(this, onCompleteBgMusic, [loop, url])); } } function onCompleteBgMusic(loop, url) { if(loop > 0){ Laya.SoundManager.stopAll() ; Laya.SoundManager.destroySound(url) ; } } 2017-04-14...
来源: Laya_社区 发布时间: 20170414
... sp.pivot(sp.width/2,sp.height/2); sp.pos(200,200); Laya.timer.frameLoop(1,this,onLoopRotation,[sp]); } private function onLoopRotation(sp:Sprite):void { sp.rotation++; } } } 2017-09-05 0 0 分享 微博 QZONE 微信 pal 赞同来自: 这个方法不行啊 还是因为升级laya2.0 之后不能用...
来源: Laya_社区 发布时间: 20170830
...{url:"prefab/ButtonA.json", type:Laya.Loader.PREFAB}], Laya.Handler.create(this, ()=>{ let prefab = Laya.loader.getRes("prefab/ButtonA.json") as Laya.Prefab; let o:Laya.Button = prefab.create(); o.zOrder = 10000; Laya.stage.addChild(o); })); 但是如果要把状态也clone出来,并没有什...
来源: Laya_社区 发布时间: 20190210
...注: 4 人 松 • 2018-07-28 16:21 Laya.stage.on(Event.VISIBILITY_CHANGE,this,pause); 这个消息没触发,拿不到进入后台状态 所以声音没法关 Laya_Aaron • 2018-07-28 16:28 这个不是引擎能解决的问题 松 • 2018-07-28 16:31 @Laya_Aaron:哦 那请问 调用系统Api拿...
来源: Laya_社区 发布时间: 20180728
...r.cacheFrameRate; 这个算出来的时间不等于_templet.getAniDuration(this._aniClipIndex);动画的持续时间的话,是停止不到最后的状态。 因为传进去的值是int类型,所以不一定除出来的数能等于动画持续时间。 momo199059 • 2018-02-02 11:16 我之前...
来源: Laya_社区 发布时间: 20180202