Detailed Description

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...
 

Member Function Documentation

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

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

static void PowerUI.Callbacks.RunAll ( )
inlinestatic

Runs all callbacks in the queue.

static void PowerUI.Callbacks.Start ( )
inlinestatic

Sets up the callback system. Always called on Unities main thread.

Member Data Documentation

Callback PowerUI.Callbacks.FirstToRun
static

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

Callback PowerUI.Callbacks.LastToRun
static

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

Thread PowerUI.Callbacks.MainThread
static

Unities main thread.