FirstModulAR 0.1.0
Loading...
Searching...
No Matches
Whisper.Utils.MainThreadDispatcher Class Reference

Helper class to dispatch events from main thread. Useful to pass events from other threads to Unity main thread. More...

Public Member Functions

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.
 

Detailed Description

Helper class to dispatch events from main thread. Useful to pass events from other threads to Unity main thread.

Member Function Documentation

◆ 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: