Skip to content

SpriteAnimator.GetCurrentAnimationSampleTime(int) Method

Definition

Namespace: Brine2D.Animation

Returns the start time of the given frame index in the current clip, in seconds. Returns 0 if out of bounds or nothing is active.

public float GetCurrentAnimationSampleTime(int frameIndex);

Parameters

frameIndex System.Int32

Returns

System.Single