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

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

781. 粒子会不会有内存泄漏? [ 51%]

...); sp.emitter.start(); sp.x = 100; sp.y = 100; sp.name = (i++).toString(); console.log(sp.name); Laya.stage.addChild(sp); setTimeout(function () { var emitter = sp.emitter; emitter.stop(); emitter.clear(); sp.stop(); sp.destroy(true); Laya.stage.removeChild(sp); onAssetsLoaded(settings); }, 100); } ...

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

782. 关于闭包的问题 [ 51%]

...2); Laya.stage.addChild(letter); letter.on("click", this, (function(para){ console.log("z:"+z+";para:"+para+";letterList[para]:"+letterList[para]); return function () { alert("z:"+z+";para:" + para + "I'm letter " + letterList[para]); }; })(z)); } 控制台结果: z:0;para:0;letterList[para]:A z:1...

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

783. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 50%]

...ddChild(this.playerHB); } private aaa():void { this.playerHB.x += this.bb; console.log( this.playerHB.x); if(this.playerHB.x > 1000) { this.bb *= -1; } if(this.playerHB.x < -100) { this.bb *= -1; } } 控制一直6像素来回移动 它就会出现颤抖 不管几像素都会 附件 : --> testL...

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

784. UNITY导出的模型旋转不了 [ 50%]

...新 this.obj.transform.rotate(this.rotation, false, false) } onDisable() { console.log("组件设置为不可用"); } } 2020-06-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 GameMonkey 相关问题 sprite旋...

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

785. 如何获取unity导出的摄像机 [ 50%]

...a = land.getChildByName("Camera"); camera.addComponent(CMS);//控制脚本 console.log(camera); }         2019-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 苏栢 相关问题 unity导出粒子文件问题 请问有没有方...

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

786. 绘制形状时事件不触发 [ 50%]

...(x, y, r1, color1, color1, 0);     function on_down(event) {         console.log("_____ kbRing2\n");     } } function laya_test() {     Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL);     var ring = new myRing(600, 300, 18, "#087729", 40, "#a87729");     La...

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

787. 为什么new不出Rectangle的类,提示not defined [ 50%]

...a.maths.Rectangle;   引用 var abc = new Rectangle(10,10,10,10);     console.log(abc); 代码。 Rectangle {x: 10, y: 10, width: 10, height: 10} 控制台结果, 综上,你的引擎环境有问题。 2018-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...

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

788. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 50%]

... this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; apesCtn.width = 3248; this.tl.pivot(-1624,-750); }, 2019-01-17 添加评论 免费帖 --> 分享 微博 Q...

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

789. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 50%]

...ya.Event.CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); }   //btn 有宽高 2018-08-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 o⃕!o⃕一覺盜兲喨 赞同来...

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

790. [LayaAirIDE3]咱能不能给文档加一个反馈入口啊,一堆bug还有错别字 [ 50%]

...体旋转bug 2.17到2.12都有 web端打包发布后能不能自动删除console.log 问题状态 最新活动: 2025-10-11 17:03 浏览: 995 关注: 2 人 SCMatrix • 2025-10-12 01:12 大大能不能帮忙反馈一下,现在文档的问题不是bug多,大家发现了肯定也知道反馈,最...

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