docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NavMeshComponentsGUIUtility

    Class containing a set of utility functions meant for presenting information from the NavMeshComponents into the GUI.

    Inheritance
    object
    NavMeshComponentsGUIUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 NavMeshModifier or NavMeshModifierVolume can influence the NavMesh.

    Declaration
    public static void AgentMaskPopup(string labelName, SerializedProperty agentMask)
    Parameters
    Type Name Description
    string labelName

    The label for the field.

    SerializedProperty 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
    NavMesh.GetSettingsByIndex
    NavMeshModifier.AffectsAgentType
    NavMeshModifierVolume.AffectsAgentType

    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

    The label for the field.

    SerializedProperty agentTypeID

    The serialized property that this GUI element displays and modifies. It stores an Integer value that represents a NavMesh agent type ID.
    The selected item is displayed as the name that corresponds to the stored ID.

    Remarks

    The dropdown menu lists all of the agent types defined in the Agents tab of the Navigation window.

    See Also
    NavMeshAgent.agentTypeID
    NavMeshBuildSettings.agentTypeID
    NavMesh.GetSettingsNameFromID

    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

    The label for the field.

    SerializedProperty 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
    defaultArea
    area

    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.

    GameObject parent

    The GameObject to which the created GameObject is attached as a child object.

    Returns
    Type Description
    GameObject

    A new GameObject that is a child of the specified parent GameObject.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)