大约有 965 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0056 秒)
...有的图片不打包? 如图 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
...rivate onChangeColor(colorPicker: Laya.ColorPicker, e: any = null): void { console.log(colorPicker.selectedColor); } } 运行效果如下动图所示: (动图2-1) Copyright ©Layabox 2022 all right reserved,powered by LayaAir Engine更新时间: 2023-11-29 17:33:41 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20231129
... 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
...如: 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
...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
...ter.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(0, 0, 200, 200, "#ff0000", 1); character.graphics.drawCircle(100, 100, 100, null, "#ff0000", 1); character.graph...
来源: Laya_社区 发布时间: 20170828
...oader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但是在手机上就看不到UI。 后来经过调试,...
来源: Laya_社区 发布时间: 20180525