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

大约有 1,300 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0053 秒)

411. 初次加载场景正确,返回后只加载第一个场景 [ 67%]

...问题吗? .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

412. 对接上架字节跳动小游戏技术指南(TypeScript-小游戏适配文档-字节跳动小游戏) [ 67%]

...ion }); //监听录屏开始事件 this._recorder.onStart((res)=>{ console.log("录屏开始 res:" + JSON.stringify(res)); }); //监听录屏错误事件 this._recorder.onError((errMsg)=>{ console.log("录屏错误 errMsg:" + errMsg); }); } } /** * 停止录屏, * 开发者根据需求,在不想...

来源: Laya2.0_文档 发布时间: 20210715

413. localRotationEulerY旋转位置错误 [ 67%]

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

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

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

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

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

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

416. laya发布vivo小游戏失败 [ 67%]

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

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

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

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

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

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

419. Camera.viewportToRay中origin与direction相等问题 [ 67%]

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

420. 给模型动态添加脚本报错 [ 67%]

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

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