getCurrentMotionName 获取当前动作名称
getCurrentMotionName
类型: MethodDeclaration
所属类: AnimationController
定义位置: actor.ts
描述
获取当前动作名称
返回值
类型: string
源代码
位置: 第 3327 行
private getCurrentMotionName(): string {
switch (this.state) {
case "idle":
return this.idleMotion;
case "move":
return this.moveMotion;
default:
throw new Error("Invalid state");
}
}
文档生成时间:2026/2/1 16:51:38