setRotationForAll 设置全部动画的旋转角度
setRotationForAll
类型: MethodDeclaration
所属类: Actor
定义位置: actor.ts
描述
设置全部动画的旋转角度
参数 rotation: 旋转角度(弧度)
参数 easingId: 过渡曲线ID
参数 duration: 持续时间(毫秒)
参数
| 参数名 | 类型 | 描述 | 默认值 | 
|---|---|---|---|
| rotation | number | - | - | 
| easingId | string | - | '' | 
| duration | number | - | n0 | 
返回值
类型: void
源代码
位置: 第 924 行
public setRotationForAll(rotation: number, easingId: string = '', duration: number = 0): void {
    for (const animation of this.animationManager.list) {
      const id = animation.key + '-rotation'
      animation.setRotation(id, this.updaters, rotation, easingId, duration)
    }
  }
文档生成时间:2025/7/21 20:53:38