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

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

51. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...ate(); //添加预制体到场景中 this.scene.addChild( monkey ); monkey.transform.position = new Laya.Vector3(-28.9354,0.3,-63.20264); } ); } } 运行效果如动图3-9 (动图3-9) 四、预加载预制体 在开发过程中,我们会通过大量创建预制体的方式来实现各种功能...

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

52. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...出了"); //平移操作 let position = new Vector3(1, 1, 1); this.model.transform.translate(position); } } 在脚本中,当动画结束时,对模型进行了平移。但是由于没有勾选Sleep选项,动画播放完成以后还依然会不停地循环最后一帧,即动图2-4最后的静...

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

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

...dMesh = mesh; render.sharedMaterial = this.batchMat; //随机位置 sprite.transform.localPosition = this._getRandomPosition(positionRanvge); //随机一个颜色索引 let colorIndex = Math.floor(Math.random() * this._colorNums); //设置节点的 Laya.ENodeCustomData.custom_0 为对应的颜色索...

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