Callbacks can be used to make sure certain things run on Unities main thread. To use them, you must inherit this callback class and override OnRun. When you create an instance, call instance.Go(); to request a run on the main thread. Note that order is not necessarily retained if you happen to call Go on the main thread anyway - it will run immediately.
Public Member Functions | |
void | Go () |
Sends this callback to the main queue. OnRun will later be called. More... | |
virtual void | OnRun () |
Always called on the main thread. Runs this callback now. More... | |
Public Attributes | |
Callback | NextCallback |
Stored as a linked list - this is the next callback. More... | |
Properties | |
static bool | WillRunImmediately [get] |
True if callbacks will run immediately with no delay. More... | |
static bool | WillDelay [get] |
True if callbacks will be delayed until the next callback run. More... | |
|
inline |
Sends this callback to the main queue. OnRun will later be called.
|
inlinevirtual |
Always called on the main thread. Runs this callback now.
Reimplemented in PowerUI.ResourcesProtocolCallback.
Callback PowerUI.Callback.NextCallback |
Stored as a linked list - this is the next callback.
|
staticget |
True if callbacks will be delayed until the next callback run.
|
staticget |
True if callbacks will run immediately with no delay.