大约有 578 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0056 秒)
Laya_社区(391) Laya2.0_文档(96) Laya_示例(44) Laya3.0_api(18) Laya3.0_文档(14) laya_api(8) Laya2.0_api(7)
...cene3D = 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, 0.8, 1.5)); camera.transform.rotate(new Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight:Direc...
来源: Laya2.0_文档 发布时间: 20210714
...ld(new Laya.Scene3D()); //创建相机 let camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); //设置相机的名称 camera.name = "camera"; //相机平移位置 camera.transform.translate(new Laya.V...
来源: Laya_社区 发布时间: 20190531
...this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加...
来源: Laya2.0_文档 发布时间: 20210715
...this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加...
来源: Laya2.0_文档 发布时间: 20210715
... this.scene = Laya.stage.addChild(new Laya.Scene3D()); //添加相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); this.camera.transform.translate(new Laya.Vector3(0, 0.7, 5)); this.camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); } onEnable() { Laya.stage.on...
来源: Laya_社区 发布时间: 20200801
...理渲染上下文。 Hierarchy PostProcessRenderContext Index Properties camera command compositeShaderData deferredReleaseTextures destination indirectTarget source Methods createRTByContextReleaseTexture Properties camera camera: Camera | null = null Defined in laya/d3/core/render/PostProcessRend...
来源: Laya3.0_api 发布时间: 20231115
...成获取到了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
...成获取到了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
...scene:Laya.Scene3D):void { Laya.stage.addChild(scene) as Laya.Scene3D; var camera:Laya.Camera = scene.getChildByName("Main Camera") as Laya.Camera; //camera.addComponent(CameraMoveScript); })); 2019-03-08 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20190308
...无关) //转换2D屏幕坐标系统到3D正交投影下的坐标系统 _camera.convertScreenCoordToOrthographicCoord(new Vector3(800, 700, 0), this.orthographicPos); 附件 : --> 2022-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20220525