UIManager Class |
Global access to UI and window management. Your screens need to derive from Window which you can then show by calling Show(Window, Object, Transform, String, WindowConflictMode) on prefabs.
You can you also call Show(Object)/Hide(WindowHideMode) on them directly if they are in the scene, for example.
Namespace: Kit
The UIManager type exposes the following members.
| Name | Description | |
|---|---|---|
| First | Returns the first window shown, or if none are. | |
| Last | Returns the last window shown, or if none are. |
| Name | Description | |
|---|---|---|
| Find(String) | Find a shown window by providing a name. | |
| FindT | Find the first shown window of a given class. | |
| Hide | Hide a window. Can be await-ed upon. | |
| IsShown(String) | Returns whether a window with a particular name is shown. | |
| IsShownT | Returns whether a window of a particular type is shown. | |
| Register | Register a window in the system. Called automatically. | |
| Show(String, Object, Transform, String, WindowConflictMode) | Show a window from a path. Can be await-ed upon. | |
| Show(Window, Object, Transform, String, WindowConflictMode) | Show a window using a prefab. Can be await-ed upon. |
| Name | Description | |
|---|---|---|
| Hidden | Event that's called when any window is hidden. | |
| Hiding | Event that's called when any window is hiding. | |
| Showing | Event that's called when any window is showing. | |
| Shown | Event that's called when any window is shown. |
| Name | Description | |
|---|---|---|
| DefaultConflictMode | Default conflict mode to use in calls. | |
| DefaultHideMode | Default hide mode to use in calls. | |
| WindowCanvasOrder | The sort order of the Canvas that's used for newly-created windows. | |
| Windows | List of all shown/showing windows. |