|
AnimationControllerGetFrameNumber(Double) Method |
GetFrameNumber returns a double that specifies the frame number at the specified animationTimeInSeconds (can be a fraction between two integer values).
If the animation was not yet starter or first frame was not yet reached, then -1 us returned.
When animation has passed the last frame and the animation is not repeating, then the last frame number is returned.
Namespace: Ab3d.AnimationAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public virtual double GetFrameNumber(
double animationTimeInSeconds
)
Parameters
- animationTimeInSeconds Double
- time since start of animation (minus animation pause time) in seconds
Return Value
Doublecurrent frame number as double; -1 is returned if animation was not yet starter or first frame was not yet reached
See Also