跳到主要内容

setAngle 设置动画角度

setAngle

类型: MethodDeclaration

所属类: AnimationManager

定义位置: actor.ts

描述

设置动画角度

参数 angle: 角度(弧度)

参数

参数名类型描述默认值
anglenumber--

返回值

类型: void

源代码

位置: 第 2778 行

public setAngle(angle: number): void {
for (const animation of this.list) {
if (animation.syncAngle) {
if (animation.playing) {
animation.playing = false
animation.setAngle(angle)
animation.playing = true
} else {
animation.setAngle(angle)
}
}
}
}

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