AnimationContextEventBase
interludesoftware.tick¶
Interlude.Tick¶
AnimationContextEventBase Class¶
Inheritance System.Object → AnimationContextEventBase
Derived
↳ AnimationContextEnter
↳ AnimationContextEvent
↳ AnimationContextInit
↳ AnimationContextLeave
Constructors¶
AnimationContextEventBase(AnimationContext, bool) Constructor¶
Initializes the event with its owning context.
public AnimationContextEventBase(Interlude.Tick.AnimationContext context, bool shouldCreateProperties);
Parameters¶
context AnimationContext
The parent animation context.
shouldCreateProperties System.Boolean
When true, named property accessors create missing properties on demand (used by Init events).
Properties¶
AnimationContextEventBase.Context Property¶
The parent AnimationContext that owns this event.
Property Value¶
Methods¶
AnimationContextEventBase.Color() Method¶
Returns the primary color property of the parent context.
Returns¶
Interlude.Tick.AnimationContextProperty<UnityEngine.Color>
AnimationContextEventBase.Color(string) Method¶
Returns the named color property, creating it when this is an Init event.
Parameters¶
Name of the property; used as a dictionary key to retrieve or create it.
Returns¶
Interlude.Tick.AnimationContextProperty<UnityEngine.Color>
AnimationContextEventBase.Done() Method¶
Ends the fluent event chain and returns the parent AnimationContext.
Returns¶
AnimationContextEventBase.Float() Method¶
Returns the primary float property of the parent context.
Returns¶
Interlude.Tick.AnimationContextProperty<System.Single>
AnimationContextEventBase.Float(string) Method¶
Returns the named float property, creating it when this is an Init event.
Parameters¶
Name of the property; used as a dictionary key to retrieve or create it.
Returns¶
Interlude.Tick.AnimationContextProperty<System.Single>
AnimationContextEventBase.GetActive() Method¶
Returns whether this event is currently active.
Returns¶
AnimationContextEventBase.GetLastActive() Method¶
Returns whether this event was active on the previous frame.
Returns¶
AnimationContextEventBase.GetTimeSince(InteractivityState) Method¶
Seconds elapsed since this event last became active, measured in scaled time. Override per event type.
Parameters¶
state Interlude.Tick.InteractivityState
Returns¶
AnimationContextEventBase.GetUnscaledTimeSince(InteractivityState) Method¶
Seconds elapsed since this event last became active, measured in unscaled time. Override per event type.
Parameters¶
state Interlude.Tick.InteractivityState
Returns¶
AnimationContextEventBase.HasBecomeActive() Method¶
Returns true on the first frame the event transitions from inactive to active.
Returns¶
AnimationContextEventBase.HasBecomeInactive() Method¶
Returns true on the first frame the event transitions from active to inactive.
Returns¶
AnimationContextEventBase.Int() Method¶
Returns the primary int property of the parent context.
Returns¶
Interlude.Tick.AnimationContextProperty<System.Int32>
AnimationContextEventBase.Int(string) Method¶
Returns the named int property, creating it when this is an Init event.
Parameters¶
Name of the property; used as a dictionary key to retrieve or create it.
Returns¶
Interlude.Tick.AnimationContextProperty<System.Int32>
AnimationContextEventBase.Rect() Method¶
Returns the primary rect property of the parent context.
Returns¶
Interlude.Tick.AnimationContextProperty<UnityEngine.Rect>
AnimationContextEventBase.Rect(string) Method¶
Returns the named rect property, creating it when this is an Init event.
Parameters¶
Name of the property; used as a dictionary key to retrieve or create it.
Returns¶
Interlude.Tick.AnimationContextProperty<UnityEngine.Rect>
AnimationContextEventBase.Rotate() Method¶
Returns the primary rotate property of the parent context.
Returns¶
Interlude.Tick.AnimationContextProperty<System.Single>
AnimationContextEventBase.Scale() Method¶
Returns the primary scale property of the parent context.
Returns¶
Interlude.Tick.AnimationContextProperty<System.Single>
AnimationContextEventBase.SetActive(bool) Method¶
Records whether this event was active last frame and sets the current active state.
Parameters¶
active System.Boolean
AnimationContextEventBase.UpdateInteractivityState(InteractivityState) Method¶
Updates timing fields in state when the event transitions. Override per event type.