natiny.animator.destroy

Lua
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

Lua
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.