Detailed Description

A class which manages callbacks running on Unity's main thread. Use Callback.MainThread to run some code on the main thread.

Static Package Functions

static void Start ()
 Sets up the callback system. Always called on Unity's 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 Package Attributes

static Thread MainThread
 Unity's 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...
 

Member Function Documentation

static void PowerUI.Callbacks.Add ( Callback  callback)
inlinestaticpackage

Don't call this directly. Use callback.Go() instead. Adds the callback to the main queue.

static void PowerUI.Callbacks.RunAll ( )
inlinestaticpackage

Runs all callbacks in the queue.

static void PowerUI.Callbacks.Start ( )
inlinestaticpackage

Sets up the callback system. Always called on Unity's main thread.

Member Data Documentation

Callback PowerUI.Callbacks.FirstToRun
staticpackage

The main callback queue. Stored as a linked list - this is the head of the queue.

Callback PowerUI.Callbacks.LastToRun
staticpackage

The main callback queue. Stored as a linked list - this is the tail of the queue.

Thread PowerUI.Callbacks.MainThread
staticpackage

Unity's main thread.