setGlobalScale 设置全局缩放系数
setGlobalScale
类型: MethodDeclaration
所属类: AnimationManager
定义位置: actor.ts
描述
设置全局缩放系数
参数 scale: 缩放系数
参数
| 参数名 | 类型 | 描述 | 默认值 |
|---|---|---|---|
scale | number | - | - |
返回值
类型: void
源代码
位置: 第 2990 行
public setGlobalScale(scale: number): void {
this.scale = scale;
for (const animation of this.list) {
animation.scale = animation.rawScale! * scale;
animation.offsetY = animation.rawOffsetY! * scale;
}
}
文档生成时间:2026/2/1 16:51:38