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
Animation
The animation associated with the callback.
Animation3D Animation { get; set; }
Property Value
TriggerFrames
Gets the list of trigger frames for the animation callback.
IEnumerable<int> TriggerFrames { get; }
Property Value
Methods
OnAnimationEnd(float)
Called when the animation ends.
void OnAnimationEnd(float time)
Parameters
timefloat
OnTriggered(float)
Called when the animation is triggered.
void OnTriggered(float time)
Parameters
timefloat