Skip to content

AnimationContextProperty_T_

interludesoftware.tick

Interlude.Tick

AnimationContextProperty\<T> Class

public class AnimationContextProperty<T>

Type parameters

T

Inheritance System.Object → AnimationContextProperty\<T>

Constructors

AnimationContextProperty(T, LerpFunc) Constructor

Initializes the property with a default value and the lerp function used for blending.

public AnimationContextProperty(T value, Interlude.Tick.GenericLerper<T>.LerpFunc lerpFunc);

Parameters

value T

lerpFunc Interlude.Tick.GenericLerper.LerpFunc<T>

Fields

AnimationContextProperty\<T>.LastUsedFrame Field

Frame index on which this property was last accessed.

public int LastUsedFrame;

Field Value

System.Int32

Methods

AnimationContextProperty\<T>.Blend(T, T, float) Method

Blends from first to second over duration seconds using a linear curve.

public Interlude.Tick.AnimationContextEventBase Blend(T first, T second, float duration);

Parameters

first T

second T

duration System.Single

Returns

AnimationContextEventBase

AnimationContextProperty\<T>.Blend(T, T, float, Curve) Method

Blends from first to second over duration seconds using the specified easing curve.

public Interlude.Tick.AnimationContextEventBase Blend(T first, T second, float duration, Interlude.Tick.Curves.Curve curve);

Parameters

first T

second T

duration System.Single

curve Interlude.Tick.Curves.Curve

Returns

AnimationContextEventBase

AnimationContextProperty\<T>.BlendUnscaled(T, T, float) Method

Blends from first to second over duration unscaled seconds using a linear curve.

public Interlude.Tick.AnimationContextEventBase BlendUnscaled(T first, T second, float duration);

Parameters

first T

second T

duration System.Single

Returns

AnimationContextEventBase

AnimationContextProperty\<T>.BlendUnscaled(T, T, float, Curve) Method

Blends from first to second over duration unscaled seconds using the specified easing curve.

public Interlude.Tick.AnimationContextEventBase BlendUnscaled(T first, T second, float duration, Interlude.Tick.Curves.Curve curve);

Parameters

first T

second T

duration System.Single

curve Interlude.Tick.Curves.Curve

Returns

AnimationContextEventBase

AnimationContextProperty\<T>.Set(T) Method

Immediately sets the property to value when the owning event is active. Returns the event for chaining.

public Interlude.Tick.AnimationContextEventBase Set(T value);

Parameters

value T

Returns

AnimationContextEventBase

AnimationContextProperty\<T>.SetParent(AnimationContextEventBase) Method

Binds this property to the event that owns it for the current frame.

public void SetParent(Interlude.Tick.AnimationContextEventBase parent);

Parameters

parent AnimationContextEventBase

AnimationContextProperty\<T>.Update(float) Method

Advances hover enter/leave timing and propagates event-specific state updates.

public void Update(float duration);

Parameters

duration System.Single