Skip to content

格式

typescript
Animation.localBounds

所属类: Animation

描述

当前Animation动画组件在本地空间的边界框。

通过该方法可以获取在本地空间的包围盒信息,对于了解动画在本地坐标系下的尺寸和范围非常有用。

参数

参数名类型描述

返回值

类型描述
Bounds动画组件在本地空间的边界框

代码示例

typescript
let animation = this.gameObject.GetComponent<Animation>(Animation);
let local_bounds = animation.localBounds;