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

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

351. 加载模型后如何取得在Unity的Transform.Rotation属性 [ 70%]

...我可以看到模型transform.rotation值的变化,         console.log(this.needle.transform.rotation); 但是,我查看         console.log(this.needle.transform.rotationEuler); 却是却是 undefined。 2017-12-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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

352. TypeScript Json 数据解析 [ 70%]

...): void { this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(this.wayPoints.name); //这里会报name 不存在 } 第二种方式 Laya.loader.load("zxc.json", Laya.Handler.create(this,function(){ this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(this.wayPoints.na...

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

353. 2.0打包apk显示不出来的问题 [ 70%]

...题,在移动版就出错,行为不一致; 是什么原因? web版log日志 app版log日志 附件 : --> JF_laba.rar 2018-10-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 hj 赞同来自: 这个demo运...

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

354. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 70%]

...straint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fixedConstraint.currentForce); //输出当前约束所受的力矩 console.log(this.fixedConstraint.currentTorque); } } onJointBreak() { console.log("break"); } ``` - 4.示例效果展示 在初始时,box和box2都...

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

355. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 70%]

...straint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fixedConstraint.currentForce); //输出当前约束所受的力矩 console.log(this.fixedConstraint.currentTorque); } } onJointBreak() { console.log("break"); } ``` - 4.示例效果展示 在初始时,box和box2都...

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

356. HIERARCHY_LOADED 和 LOADED有什么区别?为什么对scene不起作用 [ 70%]

... scene.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { console.log("scene HIERARCHY_LOADED"); }); scene.once(Laya.Event.LOADED, null, function (sprite) { console.log("scene LOADED"); });HIERARCHY_LOADED 和 LOADED有什么区别?为什么对scene不起作用? 2017-06-19 添加评论 ...

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

357. 微信小游戏分包实战(JavaScript-小游戏适配文档-微信小游戏) [ 70%]

...代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本篇文档主要是讲分包方法...

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

358. 小米手机三指点击后,后续获得的触摸点失效 [ 70%]

...; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log("drag mouse down", str); }); Laya.stage.on(Laya.Event.MOUSE_UP, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += ` {${i} : ${data.touches[i].pos....

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

359. QQ里扫一扫打开网页,不响应Laya.Event.FOCUS事件,导致失去焦点后,声音异常 [ 70%]

...nd/bg1.mp3", 0); Laya.stage.on(Laya.Event.FOCUS, null, function(){ console.log("获取焦点") Laya.SoundManager.playSound("sound/bg1.mp3", 0); }) Laya.stage.on(Laya.Event.BLUR, null, function(){ console.log("失去焦点") }) 2018-08-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

360. [LayaNative3]网络状态监听在android15及以上版本无效 [ 70%]

...人数据     if (conch.config.getNetworkType() == 5) {       console.log("有网络");             return true;     }     else{       console.log("没有网络");       return false;     }    }   else if(Laya.Browser.onPC ) {     return isOnline();   }    return true;...

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