natiny.animator.set_loop
natiny.animator.set_loop(animator [, loop])
Sets whether the clip starts again when it reaches its end, or stops there.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
animator |
number |
Animator handle from natiny.animator.create |
|
loop |
boolean |
false |
true to wrap round, false to stop at the last frame |
Example
natiny.animator.set_loop(hero_legs, true)