大约有 1,020 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
...th.random() * Laya.stage.width; var y = Math.random() * Laya.stage.height; console.log(x + "" + y); drawyuan.pos(x,y); return drawyuan; } 2017-09-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同...
来源: Laya_社区 发布时间: 20170905
...+ 'update/assetsid.txt?rand=' + Math.random() * Date.now(), false, null)); console.log("assetsid old:" + curassets + " new:" + assetsidStr);第一句是从哪里获取netssetsid资源。这里我运行之后 Downloaded http://127.0.0.1/laya/update/a ... 0.0.1 s=0 l=0 /home/layabox/LayaBox/lvfulong/c...
来源: Laya_社区 发布时间: 20200328
...= 0; private run() { let now = Date.now(); console.log("fightmng run >> " + now, " usetime:"+(now-this.last)); this.last = now; } 代码如上,帧循环把项目最小化在后台运行,挂5分钟左右之后,时间间隔会变成1分...
来源: Laya_社区 发布时间: 20220302
...有的图片不打包? 如图 web端打包发布后能不能自动删除console.log 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 打包android版本 点击返回键会提示“再次点击后退键退出游戏”,如果去掉这个提示 3.0.7版本打包v...
来源: Laya_社区 发布时间: 20240705
...OSE,this,onClose); /** * 界面关闭 */ private function onClose():void { console.log("GameStart界面关闭!"); //从舞台移除自己 this.removeSelf(); //只加载一次,因此直接消毁自己 this.destroy(); }onClose方法并没走到,控制台没输出,请问是什么问题呢 2018-...
来源: Laya_社区 发布时间: 20180711
...如: var a = new Laya.Vector3(1,0,0); var b = new Laya.Vector3(-1,0,0); console.log(Laya.Vector3.equals(a, b)); // 结果为true这样应该是不对的吧。 我现在只能把向量 x、y、z 分开来全部判断相等,才能判断相等。 2018-05-25 添加评论 免费帖 --> 分享 微博 ...
来源: Laya_社区 发布时间: 20180525
... 2017-07-20 10:17 浏览: 1250 关注: 2 人 peterz3g • 2017-07-20 10:22 console.log("----",this.body.getBounds(reference)); "Cannot read property 'getBounds' of undefined" getBounds怎么用? peterz3g • 2017-07-20 10:28 getBounds的结果和之前一样,都是0. Rectangl...
来源: Laya_社区 发布时间: 20170720
...me/__ ... :13718) at http://127.0.0.1:37684/game/gamePage.html:152:5 console.error errorReport @ WAGame.js:3 thirdErrorReport @ WAGame.js:3 (anonymous) @ WAGame.js:3 (anonymous) @ WAGame.js:9 (anonymous) @ WAGame.js:4 a @ gamePage.html:1 window.onerror VM123:3 Thu May 24 2018 11:28:22 GMT+0800...
来源: Laya_社区 发布时间: 20180524
...imationEvent的动画事件函数,名字是可以对应上的 ShowMsg(){ console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,我们将我们创建的这个脚本添加给cube。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/Laya...
来源: Laya2.0_文档 发布时间: 20210715
...et a = this.owner.getChildByName("Sprite3D") as Laya.Sprite3D; console.log(a,typeof(a)) let aa = a.addComponent(Laya.Rigidbody3D); } 报错 TypeError: Cannot read properties of undefined (reading '__className') 使用版本laya 3.1.0 beta3 , 老...
来源: Laya_社区 发布时间: 20240102