restart 重新播放动作
restart
类型: MethodDeclaration
所属类: AnimationController
定义位置: actor.ts
描述
重新播放动作
返回值
类型: void
源代码
位置: 第 3316 行
public restart(): void {
if (this.animation) {
this.playing = false;
this.animation.speed = 1;
if (this.animation.setMotion(this.getCurrentMotionName())) {
this.animation.restart();
}
}
}
文档生成时间:2026/2/1 16:51:38