大约有 494 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0038 秒)
Laya_社区(165) Laya3.0_api(90) Laya2.0_api(78) laya_api(73) Laya2.0_文档(47) Laya_示例(34) Laya3.0_文档(7)
...argetCamera = scene.addChild(new Camera(0, 0.3, 1000)); renderTargetCamera.transform.position = new Vector3(-28.8, 8, -60); renderTargetCamera.transform.rotate(new Vector3(0, 180, 0), true, false); //选择渲染目标为纹理 renderTargetCamera.renderTarget = new RenderTexture(512, 512); //渲染...
来源: Laya2.0_文档 发布时间: 20210715
...era: Camera = scene.addChild(new Camera(0, 0.3, 1000)); renderTargetCamera.transform.position = new Vector3(-28.8, 8, -60); renderTargetCamera.transform.rotate(new Vector3(0, 180, 0), true, false); //选择渲染目标为纹理 renderTargetCamera.renderTarget = new RenderTexture(512, 512); //渲染...
来源: Laya2.0_文档 发布时间: 20210715
...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); camera.clearColor = null; camera.clearFlag = BaseCamera....
来源: Laya_社区 发布时间: 20170527
...; //加载到场景 scene.addChild(camera); //移动摄像机位置 camera.transform.position = new Laya.Vector3(0, 5, 23); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3(-17, 0, 0), true, false); //设置摄像机视野范围(角度) camera.fieldOfView = 35; //设置背景颜...
来源: Laya_社区 发布时间: 20180426
...ra = 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); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamer...
来源: Laya_社区 发布时间: 20201127
...载到场景 this.scene.addChild(camera); //移动摄像机位置 camera.transform.position = new Laya.Vector3(-3, 1.5, 6); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3(-6, 0, 0), true, false); //设置摄像机视野范围(角度) camera.fieldOfView = 33; 附件 : --> 201...
来源: Laya_社区 发布时间: 20180910
...相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyD...
来源: Laya_社区 发布时间: 20200728
...a = scene.addChild(new Camera(0, 0.3, 1000)) as Camera; renderTargetCamera.transform.position = new Vector3(-28.8, 8, -60); renderTargetCamera.transform.rotate(new Vector3(0, 180, 0), true, false); //选择渲染目标为纹理 renderTargetCamera.renderTarget = new RenderTexture(512, 512); //渲染...
来源: Laya2.0_文档 发布时间: 20210715
...链接 提交 1 个回复 Laya_XS 赞同来自: 你可以修改3d物体的transform的rotate跟localScale来实现物体的缩放旋转。具体不明白你是要旋转实现哪些,你可以参考下3d的transform的api看下。3d的事件触发需要用射线检测来弄,不是2d的鼠标事件...
来源: Laya_社区 发布时间: 20170222
...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.0)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; camera.addComponent(CameraMoveScript); var map=Laya.Sprite3D.load("H5/Main.lh");...
来源: Laya_社区 发布时间: 20170515