MeatMotion

MotionDispatcher

自動更新のストレージ予約・クリアと、処理されなかった例外の通知先を管理します。

Namespace
MeatMotion
Assembly
MeatMotion

メンバー一覧へ

public static class MotionDispatcher
MotionDispatcher.cs · L9

メンバー

RegisterUnhandledExceptionHandler

未処理例外の通知先を設定します。既定の通知先はDebug.LogExceptionです。

public static void RegisterUnhandledExceptionHandler(Action<Exception> unhandledExceptionHandler)
引数
unhandledExceptionHandler
Action<Exception> 処理されなかった例外を受け取るコールバック。

GetUnhandledExceptionHandler

現在登録されている例外の通知先を取得します。

public static Action<Exception> GetUnhandledExceptionHandler()
戻り値
戻り値
Action<Exception>

Clear

自動更新用ストレージのTweenをクリアします。

public static void Clear()

EnsureStorageCapacity

型の組み合わせに対して自動更新用ストレージを予約します。

public static void EnsureStorageCapacity<TValue, TOptions, TAdapter>(int capacity)
    where TValue : unmanaged
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<TValue, TOptions>
引数
capacity
int 事前に確保する要素数。