Manager class required by all UI components. More...
Public Member Functions | |
void | Awake () |
Sets up the UI. | |
void | Register (Component[] elements) |
void | Register (UIBase element) |
void | Update () |
void | OnGUI () |
Draws the UI. | |
Public Attributes | |
UIManager | masterUIManager |
Set this if this is not the only UIManager and that another should be used to establish drawing order. | |
Static Public Attributes | |
static Matrix4x4 | matrix = Matrix4x4.identity |
static int | LayerMask = (1 << 32) - 1 |
Properties | |
static float | designWidth [get, set] |
static float | designHeight [get, set] |
Manager class required by all UI components.
If there are several UIManagers on different objects, draw order must be maintained by only one. To achieve this, other UIManagers should set their masterUIManager to this chosen parent.
void UIManager.Awake | ( | ) |
Sets up the UI.
void UIManager.OnGUI | ( | ) |
Draws the UI.
Set this if this is not the only UIManager and that another should be used to establish drawing order.
Otherwise leave unset.