Skip to content

SpriteAnimator.GetCurrentAnimationFrameDuration(int) Method

Definition

Namespace: Brine2D.Animation

Returns the frame duration at the given index within the currently set animation clip, or 0 if the index is out of bounds or no animation is active.

public float GetCurrentAnimationFrameDuration(int frameIndex);

Parameters

frameIndex System.Int32

Returns

System.Single