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

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

171. 你先用Laya.timer.frameLoop 然后再用tween才可以生效 直接用tween没用 [ 65%]

... 2 个回复 xueLayaBox - 爱学习 赞同来自: Laya.timer.frameLoop(1, this, this.resetPosition); resetPosition(): void {    var aniMonkey: Laya.Sprite3D = scene.getChildByName("monkey") as Laya.Sprite3D;    aniMonkey.transform.position = new Laya.Vector3(math,math,math); } Laya.Tween.to(aniM...

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

172. 发布到微信小游戏后Timer的getHandler报错了 [ 65%]

...|| (caller.$_GID=Utils.getGID()):0; var mid=method.$_TID || (method.$_TID=(this._mid++)*100000); return this._map[cid+mid]; } 请教一下大家,有遇到过这个问题吗?请问怎么解决? 2018-05-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

173. 微信小游戏调试时发现,某些机器上会出现切换场景后屏幕不刷新 [ 65%]

... • 2019-02-28 10:22 是的,Laya.loader.load(resURL,Laya.Handler.create(this,this.afterLoadAllRes)); resURL 里经常有多个资源,都加载完了再调用的afterLoadAllRes干别的事情,为的是一些界面的绘制能够完整 王亚飞 • 2019-09-05 13:29 :楼主解决了吗

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

174. IOS微信内置浏览器陀螺仪问题 Laya2.4.0bate [ 65%]

...n', function(event)  {}) Laya.Gyroscope.instance.on(Laya.Event.CHANGE, thisthis.onDeviceorientation);  连接打开方式都由微信扫一扫打开,safari不支持此demo运行 查找到资料地址: https://caniuse.com/#search=deviceorientation ios测试微信浏览器页面地址: https:/...

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

175. 加载预制体json,返回值不统一 [ 65%]

... 解决方式: Laya.loader.load("prefab/hero.json", Laya.Handler.create(this, function (obj) {             console.log('hero',obj);         }), null, Laya.Loader.PREFAB);         Laya.loader.create("prefab/WeiTiao.json", Laya.Handler.create(this, function (obj)...

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

176. 分享:SWF LABEL标签的使用! [ 64%]

...EEFFCC"; mc=new MovieClip(); mc.load("output/AAA.swf"); mc.on(Event.LOADED,this,onLoaded); Laya.stage.addChild(mc); } private function onLoaded():void { mc.addLabel("label01",19); mc.addLabel("label02",39); mc.addLabel("label03",59); mc.on(Event.LABEL,this,onLabel);//运行到对应的帧数,会...

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

177. vivo小游戏 LayaIDE2.2.0使用fairygui报错 [ 64%]

..."res/Basics.json", type: Laya.Loader.BUFFER }     ], Laya.Handler.create(this, this.onLoaded)); }  onLoaded(): void {     console.log('===================ss');      console.log('sssss', fgui.GRoot.inst.displayObject);     Laya.stage.addChild(fgui.GRoot.inst.displayObject);       fgui.UI...

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

178. 如何使用graphics绘画虚线 [ 64%]

...ite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 1280, 720,Handler.create(this,()=>{ sp.graphics.getBoundPoints().forEach(e=>{ console.log("_getBoundPointsM:",e); }); })); sp.x=0; sp.y=0; this._sptse=sp; Laya.stage.addChild(sp);

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

179. 粒子特效怎样重复使用? [ 64%]

...到粒子效果。断点看到 __proto._advanceTime办法中有进行调用this.emit()   2019-07-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先登...

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

180. 关于微信小游戏音频控制的问题 [ 64%]

...时是直接调用的 Laya.SoundManager.playSound(url, 1, new Laya.Handler(this, this.onComplete)); 但因为很多音效都是属于重复播放,而这个playSound()方法会返回一个SoundChannel,所以我就尝试用了一个dictionary把这些SoundChannel都保存起来,下次播放时如果...

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