unity-menustack  0.1.0
A way to track unity menu navigation that doesn't suck too much
Public Member Functions | Protected Member Functions | List of all members
MenuStack.Navigation.NextMenuNavigator Class Reference

Represents a menu navigator that navigates the next Menu in the MenuRoot More...

Inheritance diagram for MenuStack.Navigation.NextMenuNavigator:
MenuStack.Navigation.BaseMenuNavigator MenuStack.Navigation.INavigator

Public Member Functions

Menu FindFirstRecursively (Transform root, Menu current, bool hasSeenCurrent=false)
 Internal recursive matcher More...
 
- Public Member Functions inherited from MenuStack.Navigation.BaseMenuNavigator
virtual void Navigate ()
 Triggers navigation More...
 

Protected Member Functions

override Menu GetNavigationLocation ()
 Provides a location to navigate to, when navigation occurs More...
 

Detailed Description

Represents a menu navigator that navigates the next Menu in the MenuRoot

Member Function Documentation

◆ FindFirstRecursively()

Menu MenuStack.Navigation.NextMenuNavigator.FindFirstRecursively ( Transform  root,
Menu  current,
bool  hasSeenCurrent = false 
)

Internal recursive matcher

Parameters
rootthe root level transform to start matching
currentthe current menu, we want the one after this
hasSeenCurrentindicates if we've yet passed current in the tree
Returns
a matched Menu, or null

◆ GetNavigationLocation()

override Menu MenuStack.Navigation.NextMenuNavigator.GetNavigationLocation ( )
protectedvirtual

Provides a location to navigate to, when navigation occurs

Returns
Menu to navigate to

Implements MenuStack.Navigation.BaseMenuNavigator.


The documentation for this class was generated from the following file: