format
typescript
Animation.localBoundsclass: Animation
description
The current bounding box of the Animation component in local space.
This method allows you to get the bounding box information in local space, which is useful for understanding the size and range of the animation in the local coordinate system.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Bounds | The bounding box of the Animation component in local space. |
code example
typescript
let animation = this.gameObject.GetComponent<Animation>(Animation);
let local_bounds = animation.localBounds;