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
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: Unity.AppUI.Navigation
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. |