Helper class to dispatch events from main thread. Useful to pass events from other threads to Unity main thread.
More...
|
| void | Execute (Action action) |
| | Add action to be executed on main Unity thread.
|
| |
| void | Update () |
| | Call this in Unity update to flush all pending actions.
|
| |
Helper class to dispatch events from main thread. Useful to pass events from other threads to Unity main thread.
◆ Execute()
| void Whisper.Utils.MainThreadDispatcher.Execute |
( |
Action | action | ) |
|
|
inline |
Add action to be executed on main Unity thread.
◆ Update()
| void Whisper.Utils.MainThreadDispatcher.Update |
( |
| ) |
|
|
inline |
Call this in Unity update to flush all pending actions.
The documentation for this class was generated from the following file: