大约有 7 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0022 秒)
...相机1清除颜色 camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Laya.Vector3(0, 0, 1.5)); //设置裁剪空间的视口 camera1.normalizedViewport = new Laya.Viewport(0, 0, 0.5, 1.0); //创建相机2 var camera2 = scene.addChild(new Laya.Camera(0, 0.1, ...
来源: Laya2.0_文档 发布时间: 20210715
...相机1清除颜色 camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Laya.Vector3(0, 0, 1.5)); //设置裁剪空间的视口 camera1.normalizedViewport = new Laya.Viewport(0, 0, 0.5, 1.0); //创建相机2 var camera2 = scene.addChild(new Laya.Camera(0, 0.1, ...
来源: Laya2.0_文档 发布时间: 20210715
.../设置相机1清除颜色 camera1.clearColor = new Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Vector3(0, 0, 1.5)); //设置裁剪空间的视口 camera1.normalizedViewport = new Viewport(0, 0, 0.5, 1.0); //创建相机2 var camera2:Camera = scene.addChild(new Camera(0, 0.1, 100)) ...
来源: Laya2.0_文档 发布时间: 20210715
... = spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0, 0.0)); spotLight.transform.worldMatrix = mat; //设置聚光灯范围 spotLight.range = 6.0; //设置聚光灯锥形角度 spotLight.spotAngle = 32; ``` **range** 为聚光的照射范围,与点光类似,区别只是...
来源: Laya2.0_文档 发布时间: 20210715
...is.spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0, 0.0)); this.spotLight.transform.worldMatrix = mat; //设置聚光灯范围 this.spotLight.range = 6.0; //设置聚光灯锥形角度 this.spotLight.spotAngle = 32; ``` **range** 为聚光的照射范围,与点光类似...
来源: Laya2.0_文档 发布时间: 20210715
...ix4x4 = spotLight.transform.worldMatrix; mat.setForward(new Vector3(0.15, -1.0, 0.0)); directionLight.transform.worldMatrix=mat; //设置聚光灯范围 spotLight.range = 6.0; //设置聚光灯锥形角度 spotLight.spotAngle = 32; ``` **range** 为聚光的照射范围,与点光类似,区别只...
来源: Laya2.0_文档 发布时间: 20210715
...实对于LayaAir的2D与IDE认识并不多,或者说是停留在LayaAir 1.0的时代里。本篇文档,旨在让开发者进一步了解LayaAirIDE的重要功能之一,物理组件的可视化编辑使用。物理的编辑也是LayaAirIDE 2.0的重要新特性之一,希望大家能通过本...
来源: Laya2.0_文档 发布时间: 20210714