ManagedMotionData
Stores a stateful setter and lifecycle callbacks. Callers of UpdateUnsafe must supply a delegate matching the stored state types.
public struct ManagedMotionDataManagedMotionData.cs · L18Members
- CancelOnError
- SkipValuesDuringDelay
- StateCount
- State0
- State1
- State2
- UpdateAction
- OnLoopCompleteAction
- OnCompleteAction
- OnCancelAction
- DebugName
- UpdateUnsafe
- InvokeOnCancel
- InvokeOnComplete
- InvokeOnLoopComplete
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.
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 : unmanagedParameters
valuein TValueInterpolated 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
completedLoopsintNumber of completed loops.
MeatMotion