Class NavMeshComponentsGUIUtility
Class containing a set of utility functions meant for presenting information from the NavMeshComponents into the GUI.
Namespace: Unity.AI.Navigation.Editor
Syntax
public static class NavMeshComponentsGUIUtility : object
Methods
AgentMaskPopup(String, SerializedProperty)
Displays a GUI element for selecting multiple agent types for which a NavMeshModifier or NavMeshModifierVolume can influence the NavMesh.
Declaration
public static void AgentMaskPopup(string labelName, SerializedProperty agentMask)
Parameters
| Type | Name | Description |
|---|---|---|
| String | labelName | |
| SerializedProperty | agentMask |
AgentTypePopup(String, SerializedProperty)
Displays a GUI element for selecting the agent type used by a NavMeshSurface or NavMeshLink.
Declaration
public static void AgentTypePopup(string labelName, SerializedProperty agentTypeID)
Parameters
| Type | Name | Description |
|---|---|---|
| String | labelName | |
| SerializedProperty | agentTypeID |
AreaPopup(String, SerializedProperty)
Displays a GUI element for selecting the area type used by a NavMeshSurface, NavMeshLink, NavMeshModifier or NavMeshModifierVolume.
Declaration
public static void AreaPopup(string labelName, SerializedProperty areaProperty)
Parameters
| Type | Name | Description |
|---|---|---|
| String | labelName | |
| SerializedProperty | areaProperty |
CreateAndSelectGameObject(String, GameObject)
Creates a new GameObject as a child of another one and selects it immediately.
Declaration
public static GameObject CreateAndSelectGameObject(string suggestedName, GameObject parent)
Parameters
| Type | Name | Description |
|---|---|---|
| String | suggestedName | |
| GameObject | parent |
Returns
| Type | Description |
|---|---|
| GameObject |