MeatMotion

ManagedMotionData

Stores a stateful setter and lifecycle callbacks. Callers of UpdateUnsafe must supply a delegate matching the stored state types.

Namespace
MeatMotion
Assembly
MeatMotion

Jump to members

public struct ManagedMotionData
ManagedMotionData.cs · L18

Members

CancelOnError

Whether a setter exception cancels the motion.

public bool CancelOnError;

SkipValuesDuringDelay

Whether to suppress writes to the binding during a delay.

public bool SkipValuesDuringDelay;

StateCount

Number of bound state objects passed after the value. Setter dispatch supports zero through three.

public byte StateCount;

State0

First state object after the value argument.

public object State0;

State1

Second bound state argument.

public object State1;

State2

Third bound state argument.

public object State2;

UpdateAction

Delegate applying the interpolated value. Its argument types and arity must match StateCount.

public object UpdateAction;

OnLoopCompleteAction

Callback receiving the completed loop count.

public Action<int> OnLoopCompleteAction;

OnCompleteAction

Delegate invoked on completion.

public Action OnCompleteAction;

OnCancelAction

Delegate invoked on cancellation.

public Action OnCancelAction;

DebugName

Debug label available in the Editor or a Development Build.

public string DebugName;

Requires MEATMOTION_DEBUG_NAMES

UpdateUnsafe

Invoke UpdateAction with the stored number of state arguments. The caller must ensure the delegate and value types agree.

public void UpdateUnsafe<TValue>(in TValue value)
    where TValue : unmanaged
Parameters
value
in TValue Interpolated value passed to the stateful setter.

InvokeOnCancel

Invoke the cancellation callback and report callback exceptions through MotionDispatcher.

public readonly void InvokeOnCancel()

InvokeOnComplete

Invoke the completion callback and report callback exceptions through MotionDispatcher.

public readonly void InvokeOnComplete()

InvokeOnLoopComplete

Notify the callback with the completed loop count and report callback exceptions through MotionDispatcher.

public readonly void InvokeOnLoopComplete(int completedLoops)
Parameters
completedLoops
int Number of completed loops.