Skip to content

AnimationContextEvent

interludesoftware.tick

Interlude.Tick

AnimationContextEvent Class

public class AnimationContextEvent : Interlude.Tick.AnimationContextEventBase

Inheritance System.ObjectAnimationContextEventBase → AnimationContextEvent

Constructors

AnimationContextEvent(AnimationContext, EventMode) Constructor

Initializes the event with the specified parent context and trigger mode.

public AnimationContextEvent(Interlude.Tick.AnimationContext context, Interlude.Tick.AnimationContextEvent.EventMode mode);

Parameters

context AnimationContext

mode Interlude.Tick.AnimationContextEvent.EventMode

Fields

AnimationContextEvent.LastUsedFrame Field

Frame index on which this event was last accessed via a Bool* method.

public int LastUsedFrame;

Field Value

System.Int32

Methods

AnimationContextEvent.GetTimeSince(InteractivityState) Method

Seconds elapsed in scaled time since this event was last triggered, or 0 if it has never fired.

public override float GetTimeSince(Interlude.Tick.InteractivityState state);

Parameters

state Interlude.Tick.InteractivityState

Returns

System.Single

AnimationContextEvent.GetUnscaledTimeSince(InteractivityState) Method

Seconds elapsed in unscaled time since this event was last triggered, or 0 if it has never fired.

public override float GetUnscaledTimeSince(Interlude.Tick.InteractivityState state);

Parameters

state Interlude.Tick.InteractivityState

Returns

System.Single

AnimationContextEvent.UpdateInteractivityState(InteractivityState) Method

Stamps event timing fields in state based on the active/inactive transition for this mode.

public override void UpdateInteractivityState(ref Interlude.Tick.InteractivityState state);

Parameters

state Interlude.Tick.InteractivityState