Class NavMeshComponentsGUIUtility
Class containing a set of utility functions meant for presenting information from the NavMeshComponents into the GUI.
Inherited Members
Namespace: Unity.AI.Navigation.Editor
Assembly: Unity.AI.Navigation.Editor.dll
Syntax
public static class NavMeshComponentsGUIUtility
Methods
AgentMaskPopup(string, SerializedProperty)
Displays a GUI element for selecting multiple agent types for which a Nav
Declaration
public static void AgentMaskPopup(string labelName, SerializedProperty agentMask)
Parameters
Type | Name | Description |
---|---|---|
string | labelName | The label for the field. |
Serialized |
agentMask | The serialized property that holds the array of NavMesh agent type values that are selected from the items defined in the Agents tab of the Navigation window. The items are stored as Integer ID values and are displayed as their corresponding names. |
Remarks
The dropdown menu lists all of the agent types defined in the Agents tab of the Navigation window.
See Also
AgentTypePopup(string, SerializedProperty)
Displays a GUI element for selecting the agent type used by a Nav
Declaration
public static void AgentTypePopup(string labelName, SerializedProperty agentTypeID)
Parameters
Type | Name | Description |
---|---|---|
string | labelName | The label for the field. |
Serialized |
agentTypeID | The serialized property that this GUI element displays and modifies. It stores an Integer value that represents a NavMesh agent type ID. |
Remarks
The dropdown menu lists all of the agent types defined in the Agents tab of the Navigation window.
See Also
AreaPopup(string, SerializedProperty)
Displays a GUI element for selecting the area type used by a Nav
Declaration
public static void AreaPopup(string labelName, SerializedProperty areaProperty)
Parameters
Type | Name | Description |
---|---|---|
string | labelName | The label for the field. |
Serialized |
areaProperty | The serialized property that this GUI element displays and modifies. It represents a NavMesh area type and it needs to store values of type Integer. |
Remarks
The dropdown menu lists all of the area types defined in the Areas tab of the Navigation window.
See Also
CreateAndSelectGameObject(string, GameObject)
Creates and selects a new GameObject as a child of another GameObject.
Declaration
public static GameObject CreateAndSelectGameObject(string suggestedName, GameObject parent)
Parameters
Type | Name | Description |
---|---|---|
string | suggestedName | The name given to the created child GameObject. If necessary, this method modifies the name in order to distinguish it from the other children of the same parent object. |
Game |
parent | The GameObject to which the created GameObject is attached as a child object. |
Returns
Type | Description |
---|---|
Game |
A new GameObject that is a child of the specified parent GameObject. |