Skip to main content

setOffsetY 设置动画垂直偏移距离

setOffsetY​

类型: MethodDeclaration

所属类: AnimationManager

定义位置: actor.ts

描述​

设置动画垂直偏移距离

参数 key: 动画键

参数 offsetY: 垂直偏移

参数​

参数名类型描述默认值
keystring--
offsetYnumber--

返回值​

类型: void

源代码​

位置: 第 3057 行

public setOffsetY(key: string, offsetY: number): void {
const animation = this.keyMap[key];
if (animation) {
animation.rawOffsetY = offsetY;
animation.offsetY = offsetY * this.scale;
}
}

文档生成时间:2026/2/1 16:51:38