MotionUpdateJob<TValue, TOptions, TAdapter>.Motion
Stores one job entry's endpoints, timeline, clock and lifecycle state.
public struct Motion : IMotionEaseMotionUpdateJob.cs · L17Members
- Start
- End
- Options
- Duration
- Delay
- PlaybackSpeed
- Loops
- CompletedLoops
- DelayType
- LoopType
- TimeKind
- Ease
- Curve
- Time
- State
- Preserved
- InSequence
- Motion
Start
Start value used by the adapter.
public TValue Start;End
End value used by the adapter.
public TValue End;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.
public int 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.
public Ease Ease;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
fromTValueStarting value.toTValueEnd value.durationfloatDuration in seconds.
MeatMotion