UIPanelManager
The UIPanelManager class allows you to easily switch between multiple panels in a mutually exclusive way to achieve things such as menus and wizards. Panels which are to be managed by a given UIPanelManager must be children of it in the scene hierarchy. Navigation You may navigate through a sequence of panels which are part of a UIPanelManager by using some of the built-in button types for this purpose, such as UIBtnChangePanel, or you can use the class's various methods to navigate via your own code. There are primarily two ways of navigating between panels using UIPanelManager: linear and non-linear. Linear Navigation Linear navigation involves telling the UIPanelManager that you either want to move forward or backward in a sequence of panels (specified using their index setting). This is useful for things like wizards or other types of menus that proceed linearly. Non-Linear Navigation Non-linear navigation involves telling the UIPanelManager which panel, out of two or more possible panels, to show next without following a linear sequence. The currently-showing panel will be "dismissed" automatically and the specified panel will be brought in. This is the preferred method for non-linear menus such as main menus as well as control grouping techniques such as a tabbed interface. For more information on using UIPanelManager, see the "recipes" for managed panels on the Using Panels page, or the UIPanelManager section of the scripting reference. |
Properties
|