A class which manages callbacks running on Unities main thread.
Static Public Member Functions | |
static void | Start () |
Sets up the callback system. Always called on Unities main thread. More... | |
static void | RunAll () |
Runs all callbacks in the queue. More... | |
static void | Add (Callback callback) |
Don't call this directly. Use callback.Go() instead. Adds the callback to the main queue. More... | |
Static Public Attributes | |
static Thread | MainThread |
Unities main thread. More... | |
static Callback | LastToRun |
The main callback queue. Stored as a linked list - this is the tail of the queue. More... | |
static Callback | FirstToRun |
The main callback queue. Stored as a linked list - this is the head of the queue. More... | |
|
inlinestatic |
Don't call this directly. Use callback.Go() instead. Adds the callback to the main queue.
|
inlinestatic |
Runs all callbacks in the queue.
|
inlinestatic |
Sets up the callback system. Always called on Unities main thread.
|
static |
The main callback queue. Stored as a linked list - this is the head of the queue.
|
static |
The main callback queue. Stored as a linked list - this is the tail of the queue.
|
static |
Unities main thread.