大约有 1,081 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0091 秒)
...模式有问题吗? .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...
来源: Laya_社区 发布时间: 20201115
...ta.duration }); //监听录屏开始事件 this._recorder.onStart((res)=>{ console.log("录屏开始 res:" + JSON.stringify(res)); }); //监听录屏错误事件 this._recorder.onError((errMsg)=>{ console.log("录屏错误 errMsg:" + errMsg); }); } } /** * 停止录屏, * 开发者根据需求,...
来源: Laya2.0_文档 发布时间: 20210715
...dChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function(){ console.log("点击事件") }) // console.log(this.getGold) } } new Main() Laya_Aaron • 2017-12-13 17:09 getGold 哪定义的呢 xdkaka • 2017-12-13 17:17 上面图片截图了,是在UI编辑模式下 -公用-...
来源: Laya_社区 发布时间: 20171213
...。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本篇文档主要是讲分...
来源: Laya2.0_文档 发布时间: 20210715
...rigidBody.mass = 10; this.arr.push(box); console.log("position = ",box.transform.position); if (index == 1) { Laya.timer.once(1000,this,()=>{ this.setAngle(); })...
来源: Laya_社区 发布时间: 20201120
...,默认的时候该选项为log等级。如下图所示。这样会包括console的log日志,以及报错日志。如果改为只是设置为error,则只显示报错日志,不会显示console日志。无论是error还是log都会在发布后,输出对应日志等级的相关输出信息,...
来源: Laya2.0_文档 发布时间: 20210714
... ); if (distance > 300) return; console.log("摇杆按下"); this.touchId = e.touchId; this.isTouching = true; this.onTouchMove(e); // 阻止事件冒泡 e.stopPropagation(); } priv...
来源: Laya_社区 发布时间: 20251125
...配置 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...
来源: Laya_社区 发布时间: 20190916
...链接 提交 1 个回复 cuixueying 赞同来自: 1、你的写法是: console.log("this.roleName.indexOf(this.shieldArray):" + this.roleName.indexOf(this.shieldArray));其中: this.roleName为"暗诗炎舞" this.shieldArray为“” 运行:"暗诗炎舞".indexOf(""),,当没有写任何...
来源: Laya_社区 发布时间: 20170828
...ay,this.enemyHit)) { console.log("enemyHit->",this.enemyHit); var _enemy=this.enemyHit.collider.owner as Laya.Sprite3D; if(_enemy.layer==6) { ...
来源: Laya_社区 发布时间: 20231120