跳到主要内容

getCurrentMotionName 获取当前动作名称

getCurrentMotionName

类型: MethodDeclaration

所属类: AnimationController

定义位置: actor.ts

描述

获取当前动作名称

返回值

类型: string

源代码

位置: 第 3068 行

private getCurrentMotionName(): string {
switch (this.state) {
case 'idle': return this.idleMotion
case 'move': return this.moveMotion
default: throw new Error('Invalid state')
}
}

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