Detailed Description

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.

Inheritance diagram for PowerUI.Callback:
PowerUI.ResourcesProtocolCallback

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

Member Function Documentation

void PowerUI.Callback.Go ( )
inline

Sends this callback to the main queue. OnRun will later be called.

virtual void PowerUI.Callback.OnRun ( )
inlinevirtual

Always called on the main thread. Runs this callback now.

Reimplemented in PowerUI.ResourcesProtocolCallback.

Member Data Documentation

Callback PowerUI.Callback.NextCallback

Stored as a linked list - this is the next callback.

Property Documentation

bool PowerUI.Callback.WillDelay
staticget

True if callbacks will be delayed until the next callback run.

bool PowerUI.Callback.WillRunImmediately
staticget

True if callbacks will run immediately with no delay.