Model:getAnimationDuration
EditReturns the duration of an animation in the Model, in seconds.
Arguments
Name | Type | Description |
index | number | The animation index. |
Returns
Name | Type | Description |
duration | number | The duration of the animation, in seconds. |
Arguments
Name | Type | Description |
name | string | The name of the animation. |
Returns
Name | Type | Description |
duration | number | The duration of the animation, in seconds. |
Notes
The duration of an animation is calculated as the largest timestamp of all of its keyframes.