大约有 91 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0054 秒)
Laya_社区(31) Laya_示例(21) Laya3.0_api(12) Laya2.0_文档(11) Laya3.0_文档(6) laya_api(5) Laya2.0_api(4) Laya2.0_示例(1)
...ector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSpri...
来源: Laya_示例 发布时间: 20241125
...是场景中没有光照,物体的环境光颜色是不会显示的! var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Vector3(0.6, 0.6, 0.6); directionLight.diffu...
来源: Laya_社区 发布时间: 20170319
...cacheAs centerX centerY components customRenderEnable dataSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D items labelBold labelColors labelFont labelPadding l...
来源: Laya3.0_api 发布时间: 20231115
... 0, 0), true, false); this.camera.clearColor = null; //添加方向光 var directionLight: Laya.DirectionLight = this.scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); //添...
来源: Laya_社区 发布时间: 20180307
...ector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSpri...
来源: Laya_示例 发布时间: 20241125
...rue, false); //3.清除照相机颜色 this.camera.clearColor = null; this.directionLight = new Laya.DirectionLight(); this.scene.addChild(this.directionLight); this.directionLight.direction = new Laya.Vector3(0, -0.8, -1); this.directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); Laya.Sprite3D.l...
来源: Laya_社区 发布时间: 20200903
...景根节点类型 private scene3D: Laya.Scene3D; @property( { type:Laya.DirectionLightCom } ) //DirectionLight组件类型 private directionLight: Laya.DirectionLightCom; @property( { type:Laya.Sprite3D } ) //Sprite3D节点类型 private cube: Laya.Sprite3D; @property( { type:Laya.Prefab } ) //加...
来源: Laya3.0_文档 发布时间: 20241014
...其它设置)`里,当前只有一个选项,叫`Customize Export Root Directory Name(自定义导出目录名称)`,如下图所示,我们的根目录`Save Path(导出路径)`这里设置的是`E:/Game/3D`,当自定义目录名为test时,最终导出的资源全路径实际为`E:...
来源: Laya2.0_文档 发布时间: 20210714
...場景 private scene: Laya.Scene3D; private camera: Laya.Camera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS: Laya.Vector3 = new Laya.Vector...
来源: Laya_社区 发布时间: 20200917
...-15, 0, 0), true, false); this.camera.clearColor = null; //方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平...
来源: Laya_社区 发布时间: 20180820