• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,779 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)

381. localRotationEulerY旋转位置错误 [ 66%]

...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

382. 小米快游戏发布与调试指南(TypeScript-小游戏适配文档-小米快游戏) [ 66%]

... 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

383. [LayaAirIDE3]2d相机打包后问题 [ 66%]

...         );          if (distance > 300) return;          console.log("摇杆按下");         this.touchId = e.touchId;         this.isTouching = true;         this.onTouchMove(e);          // 阻止事件冒泡         e.stopPropagation();     }      priv...

来源: Laya_社区 发布时间: 20251125

384. Laya.LocalStorage.getJSON空对象在微信小游戏中被处理为空字符串 [ 66%]

...配置 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

385. 在写屏蔽词库的程序时,字符串中没有屏蔽字库中的词,indexOf会出现返回0的情况 [ 66%]

...链接 提交 1 个回复 cuixueying 赞同来自: 1、你的写法是: console.log("this.roleName.indexOf(this.shieldArray):" + this.roleName.indexOf(this.shieldArray));其中: this.roleName为"暗诗炎舞" this.shieldArray为“” 运行:"暗诗炎舞".indexOf(""),,当没有写任何...

来源: Laya_社区 发布时间: 20170828

386. [LayaAir3]关于laya更新到3.1出现射线检测不到的情况 [ 66%]

...ay,this.enemyHit))                 {                     console.log("enemyHit->",this.enemyHit);                     var _enemy=this.enemyHit.collider.owner as Laya.Sprite3D;                     if(_enemy.layer==6)                     {        ...

来源: Laya_社区 发布时间: 20231120

387. 我给加载进来的UI界面中一个图片,添加点击更换图片的事件,需要点击两次才能更换图片 [ 66%]

...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

388. Camera.viewportToRay中origin与direction相等问题 [ 66%]

...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

389. 给模型动态添加脚本报错 [ 66%]

...tPos.z + (2.5 - Math.random() * 5));                 console.log('----------------goldnode', goldNode);                 this.playerGoldArr.push(goldNode);                 goldNode.addComponent(goldItemNode);     报错信息: Uncaught TypeEr...

来源: Laya_社区 发布时间: 20200326

390. 微信小游戏,获取Laya.stage的宽高问题。 [ 66%]

微信小游戏,获取Laya.stage的宽高问题。 console.log("Laya.stage.height = ", Laya.stage.height); console.log("Laya.stage.width = ", Laya.stage.width);在加载完资源后,我打印了stage的宽高。在测试的时候,有一些机子出了问题。 正常的,安卓机测试 不...

来源: Laya_社区 发布时间: 20180530