大约有 183 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0038 秒)
...ayer(value: number) //添加显示图层(为相机添加一个蒙版) this.camera.addLayer(5); 2.5 变换 变换组件确定场景中每个精灵的位置,旋转和缩放。同时和Node节点一样具备子父节点的关联关系,使变换操作更灵活,每个精灵都有一个Transform3D...
来源: Laya3.0_文档 发布时间: 20241014
...成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //清除摄像机的标记 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as D...
来源: Laya2.0_文档 发布时间: 20210715
....Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = (scene.addChild(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //...
来源: Laya_示例 发布时间: 20241123
...Vector2(); private _outHitAllInfo: Array<Laya.RaycastHit>; private camera: Laya.Camera; private label: Laya.Label; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene ...
来源: Laya_社区 发布时间: 20180820
... //添加相机 var camera = new Laya.Camera(0, 0.1, 100); this.scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), tr...
来源: Laya_社区 发布时间: 20190509
....Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya...
来源: Laya_社区 发布时间: 20171127
....Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya....
来源: Laya_示例 发布时间: 20241123
...成获取到了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 = ne...
来源: Laya2.0_文档 发布时间: 20210715
....addChild(new Laya.Scene()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 10000))); camera.transform.translate(new Laya.Vector3(0, 5, 5)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.c...
来源: Laya_社区 发布时间: 20180427
...e3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //添加照相机 var camera:Camera = (scene.addChild(new Camera(0, 0.1, 100))) as Camera; camera.transform.translate(new Vector3(0, 3, 3)); camera.transform.rotate(new Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight:Directi...
来源: Laya2.0_文档 发布时间: 20210714