大约有 332 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0049 秒)
Laya_社区(194) Laya2.0_文档(67) Laya_示例(44) Laya3.0_api(15) Laya3.0_文档(10) laya_api(1) Laya2.0_api(1)
....addChild(new Laya.Scene()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 0, 6)); camera.clearColor = null; //材质 var material = ...
来源: Laya_社区 发布时间: 20180119
...{ private commandBuffer: Laya.CommandBuffer; private cameraEventFlag: Laya.CameraEventFlags = Laya.CameraEventFlags.BeforeImageEffect; private camera: Laya.Camera; private renders:Laya.BaseRender[] = []; private materials:Laya.Material[] = ...
来源: Laya_社区 发布时间: 20210203
官方案例里摄像机绕物体旋转脚本的问题 官方案例里的CameraMoveScripts在2.0版本下有很多接口,属性不存在。比如this.camera.moveForward、 super._initialize(owner)、super._update(state)等,放在1.7版本里是有的。是不是LayaAir.d.ts有修改。现在有...
来源: Laya_社区 发布时间: 20190224
...ew Laya.Scene3D()); scene.ambientColor = new Laya.Vector3(1, 1, 1); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 6.2, 10.5)); camera.transform.rotate(new Laya.Vector3(-40, 0, 0), true, false); camera.addComponent(CameraMoveScript); ...
来源: Laya_社区 发布时间: 20191112
...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
...a.Scene3D = Laya.stage.addChild( new Laya.Scene3D() ) as Laya.Scene3D; var camera: Laya.Camera = scene.addChild( new Laya.Camera(0, 0.1, 100) ) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.Sprite3D.load...
来源: Laya_社区 发布时间: 20220721
...hild(new Laya.Scene3D()); //初始化照相机 let camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 6, 9.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camer...
来源: Laya_社区 发布时间: 20201127
...(scene: Scene3D): void { //添加到场景 Laya.stage.addChild(scene); var camera: Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动...
来源: Laya2.0_文档 发布时间: 20210714
...aya.Scene; /*3D角色*/ private role:Laya.Sprite3D; /*3D摄像机*/ public camera:Laya.Camera; constructor() { //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage...
来源: Laya_社区 发布时间: 20180307
... 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, 5, 0)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 va...
来源: Laya_社区 发布时间: 20170809