跳到主要内容

restart 重新播放动作

restart

类型: MethodDeclaration

所属类: AnimationController

定义位置: actor.ts

描述

重新播放动作

返回值

类型: void

源代码

位置: 第 3057 行

public restart(): void {
if (this.animation) {
this.playing = false
this.animation.speed = 1
if (this.animation.setMotion(this.getCurrentMotionName())) {
this.animation.restart()
}
}
}

文档生成时间:2025/7/7 12:07:06