NavigationStack
Class in Zigurous.UI
Declaration
public class NavigationStack : MonoBehaviourDescription
Manages a stack of game objects for menu navigation purposes. This is especially useful to handle backwards navigation by simply popping off the last item in the stack.
Properties
| eventSystem | The event system being tracked by the navigation stack (Read only). | 
| items | The game objects added to the stack (Read only). | 
| top | The current selected game object at the top of the stack (Read only). | 
| rootGameObject | The root game object added to the bottom of the stack. | 
| setActiveState | Automatically sets the active state of game objects as they are pushed on and off the stack. | 
| allowEmptyStack | Allows for all items to be popped off the stack. Often times you want to maintain at least the root game object. | 
| allowNullSelections | Allows for null game objects to be pushed onto the stack. | 
Methods
| Push | Pushes a game object onto the stack, effectively navigating forwards. | 
| Pop | Pops the last game object off the stack, effectively navigating backwards. |