大约有 72 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0019 秒)
...sh; render.sharedMaterial = this.batchMat; //随机位置 sprite.transform.localPosition = this._getRandomPosition(positionRanvge); //随机一个颜色索引 let colorIndex = Math.floor(Math.random() * this._colorNums); //设置节点的 Laya.ENodeCustomData.custom_0 为对应的颜色索引 render...
来源: Laya3.0_文档 发布时间: 20251010
...tLightCom = spotLight.addComponent(Laya.SpotLightCom); spotLight.transform.localPosition = new Vector3(0.0, 9.0, -35.0); spotLight.transform.localRotationEuler = new Vector3(-15.0, 180.0, 0.0); spotLightCom.color.setValue(Math.random(), Math.random(), Math.random(), 1); spotLightCom.range = 50; spot...
来源: Laya3.0_文档 发布时间: 20251010