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

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

1. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 100%]

...如下: const { regClass, property } = Laya; @regClass() class Animal { <em>privateem> _weight: number = 0; @property( { type : Number } ) get weight() : number { return this._weight; } set weight(value: number) { this._weight = value; } } 3.2.3 是否序列化保存 通过装饰器定义为组件属性...

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

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

...ya; @regClass() export class CameraMoveScript extends Laya.Script3D { /** @<em>privateem> */ protected _tempVector3: Laya.Vector3 = new Laya.Vector3(); protected lastMouseX: number = 0; protected lastMouseY: number = 0; protected yawPitchRoll: Laya.Vector3 = new Laya.Vector3(); protected resultRotation: La...

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

3. 动画状态机详解 · LayaAir3.0文档 · LAYABOX [ 75%]

...3; ... export class AnimationScript extends Laya.AnimatorStateScript { ... <em>privateem> model: Laya.Sprite3D; /**@internal */ setPlayScriptInfo(animator: Laya.Animator | Laya.Animator2D, layerindex: number, playstate: Laya.AnimatorState | Laya.AnimatorState2D) { ... this.model = animator.owner as Laya.Sp...

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

4. 3D粒子编辑模块 · LayaAir3.0文档 · LAYABOX [ 70%]

...停,销毁,清理对象池 export class Particle3D extends Sprite3D { <em>privateem> _isInited: boolean = false; <em>privateem> _filePath: string = null; <em>privateem> _particle: Laya.Sprite = null; <em>privateem> _shuriKenParticle3D: Array&lt;ShuriKenParticle3D&gt;= []; <em>privateem> _shurikenParticleSystem: Array&lt;ShurikenP...

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