Table of Contents

Interface IAnimationCallback

Namespace
LibGFX.Graphics.Animation3D
Assembly
LibGFX.dll

Interface for animation callbacks. With this interface, you can create custom callbacks that are triggered at specific frames during the animation. You can also control the activation state of the callback.

public interface IAnimationCallback

Properties

Active

Determines if the animation callback is active.

bool Active { get; set; }

Property Value

bool

Animation

The animation associated with the callback.

Animation3D Animation { get; set; }

Property Value

Animation3D

TriggerFrames

Gets the list of trigger frames for the animation callback.

IEnumerable<int> TriggerFrames { get; }

Property Value

IEnumerable<int>

Methods

OnAnimationEnd(float)

Called when the animation ends.

void OnAnimationEnd(float time)

Parameters

time float

OnTriggered(float)

Called when the animation is triggered.

void OnTriggered(float time)

Parameters

time float