Class NavGraphViewAsset
Representation of a navigation graph as a Unity asset. This asset contain a hierarchy of NavGraph instances.
Inherited Members
Namespace: Unity.AppUI.Navigation
Assembly: solution.dll
Syntax
[CreateAssetMenu(fileName = "New Navigation Graph.asset", menuName = "App UI/Navigation Graph")]
public class NavGraphViewAsset : ScriptableObject
Properties
Name | Description |
---|---|
isEmpty | Whether this navigation graph is empty. |
nodes | The nodes of this navigation graph. |
rootGraph | The root graph of this navigation graph. |
Methods
Name | Description |
---|---|
AddNode(NavGraphViewNode) | Add a node to this navigation graph. The component will be saved as a sub-asset of this graph. |
CanNavigate(NavDestination, NavDestination, string) | Find a destination by its id. |
FindDestinationByRoute(string) | Find a destination by its id. |
RemoveNode(NavGraphViewNode) | Remove a component from this navigation graph. The component will be destroyed. |
TryFindAction(string, out NavAction) | Find an action by its id. |