MeatMotion

MotionDispatcher

Reserve or clear automatic motion storage and select the handler for unhandled exceptions.

Namespace
MeatMotion
Assembly
MeatMotion

Jump to members

public static class MotionDispatcher
MotionDispatcher.cs · L9

Members

RegisterUnhandledExceptionHandler

Set the handler for unhandled errors. The default is Debug.LogException.

public static void RegisterUnhandledExceptionHandler(Action<Exception> unhandledExceptionHandler)
Parameters
unhandledExceptionHandler
Action<Exception> Callback receiving unhandled exceptions.

GetUnhandledExceptionHandler

Get the currently registered unhandled-exception handler.

public static Action<Exception> GetUnhandledExceptionHandler()
Return value
Returns
Action<Exception>

Clear

Clear motions from automatic update storage.

public static void Clear()

EnsureStorageCapacity

Reserve automatic update storage for this combination of types.

public static void EnsureStorageCapacity<TValue, TOptions, TAdapter>(int capacity)
    where TValue : unmanaged
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<TValue, TOptions>
Parameters
capacity
int Number of entries to reserve.