Skip to main content

setScale 设置动画缩放系数

setScale

类型: MethodDeclaration

所属类: AnimationManager

定义位置: actor.ts

描述

设置动画缩放系数

参数 key: 动画键

参数 scale: 缩放系数

参数

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

返回值

类型: void

源代码

位置: 第 3003 行

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

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