• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0019 秒)

1. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 100%]

...ildByName('Scenes').getChildByName('Area').getChildByName(str))).transform.localPosition); } } 四、角色移动 角色移动,实际上就是在间隔很短的时间内,改变角色的位置。在我们的示例中,是通过每40毫秒来循环检查角色行走路线,通过Tween来执行...

来源: Laya3.0_文档 发布时间: 20230303

2. 3D灯光与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...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

3. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...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