跳到主要内容

startIdle 开始闲置动作

startIdle​

类型: MethodDeclaration

所属类: AnimationController

定义位置: actor.ts

描述​

开始闲置动作

返回值​

类型: void

源代码​

位置: 第 3294 行

public startIdle(): void {
this.state = "idle";
if (this.animation && this.playing === false) {
if (this.animation.motionName === this.idleMotion) return;
if (this.animation.setMotion(this.idleMotion)) {
this.animation.restart();
}
}
}

文档生成时间:2026/2/1 16:51:38