setOffsetY 设置动画垂直偏移距离
setOffsetY
类型: MethodDeclaration
所属类: AnimationManager
定义位置: actor.ts
描述
设置动画垂直偏移距离
参数 key
: 动画键
参数 offsetY
: 垂直偏移
参数
参数名 | 类型 | 描述 | 默认值 |
---|---|---|---|
key | string | - | - |
offsetY | number | - | - |
返回值
类型: void
源代码
位置: 第 2810 行
public setOffsetY(key: string, offsetY: number): void {
const animation = this.keyMap[key]
if (animation) {
animation.rawOffsetY = offsetY
animation.offsetY = offsetY * this.scale
}
}
文档生成时间:2025/7/7 12:07:06