Skip to content

AnimationClip.AddEvent(string, float, Action, bool) Method

Definition

Namespace: Brine2D.Animation

Adds a named event marker that fires when playback crosses the given time offset. Events are stored sorted by time.

public Brine2D.Animation.AnimationClip AddEvent(string name, float time, System.Action<Brine2D.Animation.ClipEventArgs> callback, bool fireBothDirections=false);

Parameters

name System.String

time System.Single

callback System.Action<ClipEventArgs>

fireBothDirections System.Boolean

Returns

AnimationClip