natiny.animator.destroy
natiny.animator.destroy(animator)
Destroys the animator and takes its layer out of the model's pose at once.
Parameters
| Name | Type | Description |
|---|---|---|
animator |
number |
Animator handle from natiny.animator.create |
Example
natiny.animator.destroy(wave_layer)
Notes
- Destroying a model destroys its animators; this is only needed to drop a layer while the model remains alive.