Click or drag to resize
AB4D logo

AnimationControllerGetFrameNumber Method

GetFrameNumber returns a double that specifies the current frame number (can be a fraction between two integer values). The number is calculated based on the current animation time (get with calling GetAnimationTimeInSeconds method). 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.Animation
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public double GetFrameNumber()

Return Value

Double
current frame number as double; -1 is returned if animation was not yet starter or first frame was not yet reached
See Also