Class NavGraph
NavGraph is a collection of NavDestination nodes fetchable by ID.
A NavGraph serves as a 'virtual' destination: while the NavGraph itself will not appear on the back stack, navigating to the NavGraph will cause the startDestination to be added to the back stack.Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.AppUI.Navigation
Assembly: solution.dll
Syntax
[Serializable]
public class NavGraph : NavGraphViewHierarchicalNode
Remarks
A NavGraph is not valid until you add a destination and set the startDestination.
Properties
startDestination
Sets the starting destination for this NavGraph.
Declaration
public NavDestination startDestination { get; set; }
Property Value
Type | Description |
---|---|
NavDestination |
Methods
FindStartDestination()
Find the start destination for this NavGraph.
Declaration
public NavDestination FindStartDestination()
Returns
Type | Description |
---|---|
NavDestination | The start destination for this NavGraph. |