Click or drag to resize
AB4D logo

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.Animation
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax
C#
public virtual double GetFrameNumber(
	double animationTimeInSeconds
)

Parameters

animationTimeInSeconds  Double
time since start of animation (minus animation pause time) in seconds

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