Class NavMeshModifier
Component that modifies the properties of the GameObjects used for building a NavMesh.
Inherited Members
Namespace: Unity.AI.Navigation
Assembly: solution.dll
Syntax
[ExecuteAlways]
[AddComponentMenu("Navigation/NavMeshModifier", 32)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.ai.navigation@1.1/manual/NavMeshModifier.html")]
public class NavMeshModifier : MonoBehaviour
Remarks
The properties apply to the current GameObject and can be optionally applied recursively to all its children in the hierarchy. This modifier overrides the properties set to this GameObject by any other NavMeshModifier in the parent hierarchy.
Properties
Name | Description |
---|---|
activeModifiers | Gets the list of all the NavMeshModifier components that are currently active in the scene. |
applyToChildren | Gets or sets whether this GameObject's children also use the modifier settings. |
area | Gets or sets the area type applied by this GameObject. |
generateLinks | Gets or sets whether this object is included in the link generation process. |
ignoreFromBuild | Gets or sets whether the NavMesh building process ignores this GameObject and its children. |
overrideArea | Gets or sets whether to assign the area type to this object instead of the defaultArea. |
overrideGenerateLinks | Gets or sets whether the default links generation condition for the GameObject and its children should be overridden. |
Methods
Name | Description |
---|---|
AffectsAgentType(int) | Verifies whether this modifier can affect in any way the generation of a NavMesh for a given agent type. |