大约有 1,300 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0053 秒)
Laya_社区(1114) Laya2.0_文档(69) Laya3.0_文档(47) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
...问题吗? .laya文件夹过大,没有打包 console.log("目标所属的OWER"+this.owner.name + ""); console.log("目标所属的OWER:"+this.owner.name.slice(12,13) + ""); Laya.Scene.open("test/PuzzleScene"+this.owner.name.slice(12,13)+".scene...
来源: Laya_社区 发布时间: 20201115
...ion }); //监听录屏开始事件 this._recorder.onStart((res)=>{ console.log("录屏开始 res:" + JSON.stringify(res)); }); //监听录屏错误事件 this._recorder.onError((errMsg)=>{ console.log("录屏错误 errMsg:" + errMsg); }); } } /** * 停止录屏, * 开发者根据需求,在不想...
来源: Laya2.0_文档 发布时间: 20210715
...y.mass = 10; this.arr.push(box); console.log("position = ",box.transform.position); if (index == 1) { Laya.timer.once(1000,this,()=>{ this.setAngle(); }) ...
来源: Laya_社区 发布时间: 20201120
... var equipDataArray = Laya.LocalStorage.getJSON('equipDataArray'); console.log('equipDataArray ', equipDataArray, ' |'); if (equipDataArray === null) { equipDataArray = [ { icon: 'img/weapon/gun0.png', weaponIndex: 0, weaponGrade: 1 }, { icon: 'img/weapon/gun1.png', weaponIndex: 1, weaponGrade: 1 },...
来源: Laya_社区 发布时间: 20190916
...提交 1 个回复 cuixueying 赞同来自: 1、你的写法是: console.log("this.roleName.indexOf(this.shieldArray):" + this.roleName.indexOf(this.shieldArray));其中: this.roleName为"暗诗炎舞" this.shieldArray为“” 运行:"暗诗炎舞".indexOf(""),,当没有写任何东西的...
来源: Laya_社区 发布时间: 20170828
...• 2020-08-18 09:49 index.js:829 data stderr: stderr: npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-08-18T01_47_13_310Z-debug.log index.js:829 data 2 end) npm install -g @vivo-minigame/cli:1 index.js:829 data laya_ide_tim...
来源: Laya_社区 发布时间: 20200817
...enemyHit)) { console.log("enemyHit->",this.enemyHit); var _enemy=this.enemyHit.collider.owner as Laya.Sprite3D; if(_enemy.layer==6) { ...
来源: Laya_社区 发布时间: 20231120
...a.Event.CLICK, this,apeclick2, arr2); } function apeclick2(that) { console.log("apeclick sucess"); that.skin = "../img/5.jpg"; console.log(that); that.zOrder = 1; } 2017-02-18 1 0 分享 微博 QZONE 微信 chensa222 赞同来自: 忘了说 我测试过,第一次点击切换时要两次 之后再...
来源: Laya_社区 发布时间: 20170217
...e3D; scene.physicsSimulation.rayCast(this._ray, this._raycastHit); console.log(this._raycastHit.succeeded); if(this._raycastHit.succeeded) console.log(this._raycastHit.collider.owner.name); } GameManager.instance.mainCamera其实就是场景里唯一的相机(从Unity里导出的)但是屡次不能...
来源: Laya_社区 发布时间: 20190319
...+ (2.5 - Math.random() * 5)); console.log('----------------goldnode', goldNode); this.playerGoldArr.push(goldNode); goldNode.addComponent(goldItemNode); 报错信息: Uncaught TypeError: Can...
来源: Laya_社区 发布时间: 20200326