setPriority 设置动画优先级
setPriority
类型: MethodDeclaration
所属类: AnimationManager
定义位置: actor.ts
描述
设置动画优先级
参数 key: 动画键
参数 priority: 排序优先级
参数
| 参数名 | 类型 | 描述 | 默认值 | 
|---|---|---|---|
| key | string | - | - | 
| priority | number | - | - | 
返回值
类型: void
源代码
位置: 第 2797 行
public setPriority(key: string, priority: number): void {
    const animation = this.keyMap[key]
    if (animation) {
      animation.priority = priority
      this.sort()
    }
  }
文档生成时间:2025/7/21 20:53:38