大约有 1,779 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)
...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
... 2、下载安装小米的测试APP,下载页面:[[https://dev.mi.com/console/doc/detail?pId=1738](https://dev.mi.com/console/doc/detail?pId=1738)](https://dev.mi.com/console/doc/detail?pId=1779) 进入页面后,下拉找到第3步,**调试自测**那一栏里,直接按提示下载即可...
来源: 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
...g.on(Laya.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
...aya.Scene3D; 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
...tPos.z + (2.5 - Math.random() * 5)); console.log('----------------goldnode', goldNode); this.playerGoldArr.push(goldNode); goldNode.addComponent(goldItemNode); 报错信息: Uncaught TypeEr...
来源: Laya_社区 发布时间: 20200326
微信小游戏,获取Laya.stage的宽高问题。 console.log("Laya.stage.height = ", Laya.stage.height); console.log("Laya.stage.width = ", Laya.stage.width);在加载完资源后,我打印了stage的宽高。在测试的时候,有一些机子出了问题。 正常的,安卓机测试 不...
来源: Laya_社区 发布时间: 20180530