大约有 2 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0016 秒)
...的预制体 */ @property({ type: Laya.Prefab, caption: "爆炸动画" }) private burstAni: Laya.Prefab; /**等级文本对象引用 */ private _text: Laya.Text; /**盒子等级 */ private _level: number; constructor() { super(); } //组件被启用后执行 onEnable(): void { this._level = Math.rou...
来源: Laya3.0_文档 发布时间: 20251010
...ya.Script { @property({ type : Laya.Sprite3D}) public cube: Laya.Sprite3D; private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图4-4所示: (动图4-4) 4.1.3 3D...
来源: Laya3.0_文档 发布时间: 20251010