大约有 169 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0044 秒)
...相机 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.DirectionLight()); directionLight.color = new...
来源: Laya2.0_文档 发布时间: 20210714
...ene.addChild(new Laya.Camera(0, 1, 1000))) as Laya.BaseCamera; this.camera.transform.translate(new Vector3(0, 0, 500)); 这样用即可! 2016-10-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 JUNLIU 相关问题 2.0一不小心删...
来源: Laya_社区 发布时间: 20161017
...is._layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLocalScale; /*添加部分*/ _pos.x = Laya.stage.mouseX; _pos.y = Laya.stage.mouseY; //转换2D屏幕坐标系统到3D正交投...
来源: Laya2.0_文档 发布时间: 20210715
...is._layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLocalScale; /*添加部分*/ _pos.x = Laya.stage.mouseX; _pos.y = Laya.stage.mouseY; //转换2D屏幕坐标系统到3D正交投...
来源: Laya2.0_文档 发布时间: 20210715
...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(3, 8, 10)); camera.transform.lookAt(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 1, 0)); camera.clearColor = new Laya.Vector3(0.3, 0.3, 0.5); camera.addComponent(CameraMoveScript); //创...
来源: Laya_社区 发布时间: 20180103
...irectionLight; directionLight.color = new Vector3(1, 1, 1); directionLight.transform.rotate(new Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法。在...
来源: Laya2.0_文档 发布时间: 20210715
...相机 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.DirectionLight()); directionLight.color = new...
来源: Laya2.0_文档 发布时间: 20210715
...e(); this.m_sceneCamera = new Laya.Camera(0, 0.1, 100); this.m_sceneCamera.transform.translate(new Laya.Vector3(-40, 50, 60)); this.m_sceneCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.m_sceneCamera.addComponent(CameraMoveScript); this.stage.addChild(this.m_scene); this.m_scene.addChild(thi...
来源: Laya_社区 发布时间: 20171012
...ene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 0.85, 1.7)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = scene.addChild(new Laya.DirectionLight()); di...
来源: Laya_示例 发布时间: 20241124
...相机 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.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); di...
来源: Laya2.0_文档 发布时间: 20210715