Skip to content

format

typescript
Animation.localBounds

class: 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_nametypedescription

reture

typedescription
BoundsThe bounding box of the Animation component in local space.

code example

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