MeatMotion

MotionUpdateJob<TValue, TOptions, TAdapter>.Motion

Stores one job entry's endpoints, timeline, clock and lifecycle state.

Namespace
MeatMotion
Assembly
MeatMotion

Jump to members

public struct Motion : IMotionEase
MotionUpdateJob.cs · L17

Members

Start

Start value used by the adapter.

public TValue Start;

End

End value used by the adapter.

Options

Adapter-specific options supplied to Evaluate.

public TOptions Options;

Duration

Duration of an interpolation interval, in seconds.

public float Duration;

Delay

Delay in seconds before the first pass or each loop.

public float Delay;

PlaybackSpeed

Playback multiplier applied to the selected clock's delta.

public float PlaybackSpeed;

Loops

Configured number of loops.

CompletedLoops

Number of completed loops at the evaluation time.

public int CompletedLoops;

DelayType

Apply Delay before the first pass or before every loop.

public DelayType DelayType;

LoopType

Select Restart, Flip, Incremental or Yoyo for repeated passes.

public LoopType LoopType;

TimeKind

Select the delta-time clock for this entry.

public MotionTimeKind TimeKind;

Ease

Ease applied to normalized time.

Curve

Borrowed curve for CustomAnimationCurve. Keep it alive until the job completes.

public UnsafeAnimationCurve Curve;

Time

Current elapsed time in seconds for the entry.

public double Time;

State

Current lifecycle Status of the entry.

public Status State;

Preserved

Keep the completed entry from being retired automatically on a subsequent evaluation.

public bool Preserved { set; }

InSequence

Skip ordinary clock advancement and value writes for a sequence-owned entry.

public bool InSequence { set; }

Motion

Construct an entry from endpoints and duration with PlaybackSpeed and Loops initially set to one.

public Motion(TValue from, TValue to, float duration)
Parameters
from
TValue Starting value.
to
TValue End value.
duration
float Duration in seconds.