Class Dispatcher
Assembly : Unity.Pixyz.UnitySDK.Editor.dll
Syntax
public static class Dispatcher
Methods
DelayFrames(int)
Declaration
public static Dispatcher.DelayFramesDispatch DelayFrames (int frames )
Parameters
Type
Name
Description
int
frames
Returns
GoMainThread()
Declaration
public static Dispatcher.GoMainThreadDispatch GoMainThread ()
Returns
GoThreadPool()
Declaration
public static Dispatcher.GoThreadPoolDispatch GoThreadPool ()
Returns
SleepForSeconds(float)
Declaration
public static Dispatcher.SleepForSecondsDispatch SleepForSeconds (float seconds )
Parameters
Type
Name
Description
float
seconds
Returns
StartCoroutine(IEnumerator)
Starts a coroutine.
Similar to Unity's coroutine, except that it can switch threads.
Yield instructions to use are all static methods in the Dispatcher class.
Declaration
public static void StartCoroutine (IEnumerator enumerable )
Parameters
Type
Name
Description
IEnumerator
enumerable
Instruction to run
Update()
Update callback, connected to editor loop and game loop, in order to be able to dispatch
instructions in the main thread in editor or play mode.
Declaration
public static void Update ()
WaitForSeconds(float)
Declaration
public static Dispatcher.WaitForSecondsDispatch WaitForSeconds (float seconds )
Parameters
Type
Name
Description
float
seconds
Returns