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

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

31. 继承Laya.Sprite3D的脚本挂在哪里的? [ 64%]

...Sprite3D的脚本,直接挂到了Scene节点上,启动时会报“this.owner._scene._addScript is not a function”,请问怎么处理? 2020-11-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 陆仁毅 ...

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

32. 判断玩家在地面还在空中 [ 64%]

...  var ray = new Laya.Ray(vec3,new Laya.Vector3(0,0,1));         (this.owner.scene as Laya.Scene3D).physicsSimulation.rayCast(ray,this.outHitResult);         if(!this.outHitResult.succeeded){             return false;         }         return this.outHitResult.collider     } ...

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

33. [LayaAir2]字节小游戏物理的坐标不一样,碰撞盒会比laya的小,物理的位置也不一样 [ 64%]

... Laya.Physics.I.allowSleeping = false;         this.strWorldRoot= this.owner.scene.strWorldRoot;         Laya.Physics.I.worldRoot = this.strWorldRoot;     }     onUpdate(): void {         var playerPos=new Laya.Point(this.cameraPlayerOffset.x,this.cameraPlayerOffset.y);         v...

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

34. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 64%]

...or3(0,0,0);     }     onStart(){         this.scene = this.owner.parent;         this.text = this.scene.parent.getChildByName("ceshi");         this.camera = this.scene.getChildByName("camera");     }     onUpdate(){         let touchCount = this.scene...

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

35. 动画节点 · LayaAir3.0文档 · LAYABOX [ 64%]

...= Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法...

来源: Laya3.0_文档 发布时间: 20230629

36. 按照范例写的碰撞一直检测不到 this.outHitInfo.distance [ 64%]

...ya.Physics.rayCast(this.ray,this.outHitInfo,5)); //更新角色位置 this.owner.transform.translate(new Laya.Vector3(speedX,0,speedZ),false); //播放行走动画   2018-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

37. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 63%]

....0.3 的VideoNode不支持在微信浏览器中播放 let videoNode = this.owner.getChildByName("VideoNode") as Laya.VideoNode; videoNode.source = 'xxx.mp4'; videoNode.play(); // 上面代码在PC端安卓苹果等自带浏览器支持视频播放,但是在微信浏览器无任何显示。 let mat...

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

38. UNITY导出的模型旋转不了 [ 63%]

...此方法只执行一次 */ onAwake() { //得到3D对象 this.obj = this.owner; } onStart() { } /** * 覆写组件更新方法(相当于帧循环) */ onUpdate() { //所属脚本对象旋转更新 this.obj.transform.rotate(this.rotation, false, false) } onDisable() { console.log("组件设置为...

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

39. laya.d3.core.SkinnedMeshRenderer_API3.0 [ 63%]

...onstructors constructor Properties _bones _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge Accessors awaked bones bounds boundsChange castShadow destroyed distanceForSort enabled hideFlags id lightmapIndex lightmapScaleOffset localBounds material materials ratioIgnor receiv...

来源: Laya3.0_api 发布时间: 20231115

40. laya.d3.core.SimpleSkinnedMeshRenderer_API3.0 [ 63%]

...onstructors constructor Properties _bones _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge Accessors awaked bones bounds boundsChange castShadow destroyed distanceForSort enabled hideFlags id lightmapIndex lightmapScaleOffset localBounds material materials ratioIgnor receiv...

来源: Laya3.0_api 发布时间: 20231115