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

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

1. 2.x引擎项目升级指南 · LayaAir3.0文档 · LAYABOX [ 100%]

...上@property()。 @property( { type : String } ) public text: string = ""; constructor() { super(); } } 5、Runtime的使用差异 3.0的场景与2.0完全不是一个概念, 3.0的runtime只能在场景上的2D根节点Scene2D或预制体的根节点上设置,其它的子级节点,不再支...

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

2. 3D物理编辑 · LayaAir3.0文档 · LAYABOX [ 69%]

...的3D脚本示例 */ export default class TSDemo extends Laya.Script3D { constructor() { super(); } } 2D脚本与3D脚本不要混用,如果是用IDE创建的脚本模板,需要将继承的2D脚本类(Laya.Script)改为3D脚本类(Laya.Script3D), 添加物理脚本 只有为节点添...

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

3. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 50%]

...a; protected scene: Laya.Scene3D = new Laya.Scene3D; speed: number = 0.01; constructor() { super(); } /** * @private */ protected _updateRotation(): void { if (Math.abs(this.yawPitchRoll.y) < 1.50) { Laya.Quaternion.createFromYawPitchRoll(this.yawPitchRoll.x, this.yawPitchRoll.y, this.yawPitchRol...

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