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

大约有 1,013 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)

781. Laya2.2问题,有没有遇到的? [ 50%]

... = true; this.onConfigLoaded(); } onVersionLoaded() { } onConfigLoaded() { console.log(123131313213); } } new Main();  }());   错误信息: Uncaught TypeError: window.wx.getFileSystemManager is not a function     at window.wxMiniGame (laya.wxmini.js:271)     at Function.__init__ (laya.core....

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

782. 粒子会不会有内存泄漏? [ 50%]

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

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. VSCode高效开发工作流配置指南(TypeScript-IDE篇(TS)-代码模式基础) [ 50%]

...process = exec("layaair2-cmd compile"); process.stdout.on("data",(data)=>{ console.log(data); }); process.stderr.on("data",(data)=>{ console.log(data); }); process.on("exit",(code,signal)=>{ console.log("success"); console.log(code,signal); cb(); }) } //创建一个名称为compile的gulp任务 task...

来源: Laya2.0_文档 发布时间: 20210715

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

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

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

786. 使用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

787. 绘制形状时事件不触发 [ 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

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

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

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

789. LayaAir IDE 1.8.5发布vivo小游戏Laya.loader.load()方法加载音乐文件出现问题 [ 50%]

...件格式(已测试格式:wav,ogg,mp3,都不能加载) 3.通过console.log(Laya.loader.load(“音乐文件资源目录”)),打印日志能获取到对象,返回值不为undefined 其他:在没有加载音乐的情况下,通过Laya.SoundManager.playMusic (“音乐资...

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

790. 为什么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