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

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

61. 缓动 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...建缓动 Laya.Tween.create(aCube.transform, aCube) .duration(2000) .to("localPosition", Laya.Vector3.ZERO) //设置插值函数,让物体沿曲线路径行动 .interp(Laya.Tween.useCurvePath, path) 运行效果如图: Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新...

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

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

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