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

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

11. 加载.lh文件 运行后黑屏 无法显示 [ 88%]

...er.parent as Laya.Scene3D;         this._text = this._scene.parent.getChildByName("ceshi") as Laya.Text;         this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCount = this._scene.input.touchCount();         if (1 === touchCount){ ...

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

12. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 87%]

...er.parent as Laya.Scene3D;         this._text = this._scene.parent.getChildByName("ceshi") as Laya.Text;         this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCount = this._scene.input.touchCount();         if (1 === touchCount){ ...

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

13. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 86%]

...Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(...

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

14. viewportPointToRay产生的射线始终有偏差,是为什么? [ 85%]

... this._phasorSpriter3D = new PhasorSpriter3D(); this._camera = this._owner.getChildByName("Camera") as Camera; } public _postRenderUpdate(state:RenderState):void { super._update(state); this._point.elements[0] = Laya.stage.mouseX; this._point.elements[1] = Laya.stage.mouseY; this._camera.viewportPoi...

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

15. 如何获取unity导出的摄像机 [ 84%]

如何获取unity导出的摄像机 var camera = scene.getChildByName("Main Camera");获取不到摄像机   附件 : --> 2018-08-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: 你场...

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

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

...s.scene = this.owner.parent;         this.text = this.scene.parent.getChildByName("ceshi");         this.camera = this.scene.getChildByName("camera");     }     onUpdate(){         let touchCount = this.scene.input.touchCount();         if (1 === touchCount){ ...

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

17. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 83%]

...Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(...

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

18. 从Unity中编辑并导出摄像机(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 83%]

...ya.stage.addChild(scene); //从场景中获取摄像机 var camera = scene.getChildByName("Main Camera"); //后续对摄像机的逻辑操作....... } } ``` ​ 在Untiy中,摄像机默认名为“Main Camera”,因此在上述代码中,通过scenegetChildByName(“Main Camera”)方法得...

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

19. 从Unity中编辑并导出摄像机(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 82%]

...ya.stage.addChild(scene); //从场景中获取摄像机 var camera = scene.getChildByName("Main Camera"); //后续对摄像机的逻辑操作....... } } ``` ​ 在Untiy中,摄像机默认名为“Main Camera”,因此在上述代码中,通过scenegetChildByName(“Main Camera”)方法得...

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

20. 射线检测报错,outHitInfo.sprite3D=null; [ 82%]

...load(owner : any):void{ this.scene = owner; this.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); }  public _start(state:Laya.RenderState):void{ this.ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vector3.ZERO); thi...

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