大约有 103 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0040 秒)
...ildByName( "Monster1" ) as Laya.Sprite3D; scene.addChild(Monster); Monster.transform.translate( new Laya.Vector3(monster_position_x, 0, monster_position_z) ); this.monster_character = Monster; // this.master_turn(); //添加自定义模型 var box: Laya.MeshSprite3D = this.scene.addChild( new Laya.M...
来源: Laya_社区 发布时间: 20200917
....stage.addChild(this.scene); this.scene.addChild(this.camera); this.camera.transform.translate(new Laya.Vector3(0, 3.5, 1)); this.camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //3.清除照相机颜色 this.camera.clearColor = null; this.directionLight = new Laya.DirectionLight(...
来源: Laya_社区 发布时间: 20200903
...ene()); 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.DirectionLight()); directionLight.direction = new Laya.Vector3(...
来源: Laya_示例 发布时间: 20241123
...Light()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法...
来源: Laya2.0_文档 发布时间: 20210715
...ene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); //-30改为-90 camera.transform.translate(new Laya.Vector3(0, 0.5, 0)); //(0,0.5,500)改为(0, 0.5, 0) camera.orthographicProjection = true; var directionLight ...
来源: Laya_社区 发布时间: 20170807
...era = (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.clearColor = Laya.Vector3(255,255,0.1); camera.addComponent(CameraM...
来源: Laya_社区 发布时间: 20180427
...era = (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.clearColor = Laya.Vector3(255,255,0.1); camera.addComponent(CameraM...
来源: Laya_社区 发布时间: 20180427
...相机 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
...上OK,移动端没试,有问题调试着改一改就OK啦。。import Transform3D = Laya.Transform3D; import Vector3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Ca...
来源: Laya_社区 发布时间: 20190224
...上OK,移动端没试,有问题调试着改一改就OK啦。。import Transform3D = Laya.Transform3D; import Vector3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Ca...
来源: Laya_社区 发布时间: 20170714