大约有 50 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0057 秒)
...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
...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
...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
... 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
如何获取unity导出的摄像机 var camera = scene.getChildByName("Main Camera");获取不到摄像机 附件 : --> 2018-08-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: 你场...
来源: Laya_社区 发布时间: 20180807
...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
...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
...ya.stage.addChild(scene); //从场景中获取摄像机 var camera = scene.getChildByName("Main Camera"); //后续对摄像机的逻辑操作....... } } ``` 在Untiy中,摄像机默认名为“Main Camera”,因此在上述代码中,通过scene的getChildByName(“Main Camera”)方法得...
来源: Laya2.0_文档 发布时间: 20210714
...ya.stage.addChild(scene); //从场景中获取摄像机 var camera = scene.getChildByName("Main Camera"); //后续对摄像机的逻辑操作....... } } ``` 在Untiy中,摄像机默认名为“Main Camera”,因此在上述代码中,通过scene的getChildByName(“Main Camera”)方法得...
来源: Laya2.0_文档 发布时间: 20210715
...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