Class NavMeshModifierVolume
Component used by the NavMesh building process to assign a different area type to the region inside the specified volume.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.AI.Navigation
Assembly: solution.dll
Syntax
[ExecuteAlways]
[AddComponentMenu("Navigation/NavMeshModifierVolume", 31)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.ai.navigation@1.1/manual/NavMeshModifierVolume.html")]
public class NavMeshModifierVolume : MonoBehaviour
Properties
Name | Description |
---|---|
activeModifiers | Gets the list of all the NavMeshModifierVolume components that are currently active in the scene. |
area | Gets or sets the area type that will be enforced by the volume during the generation of the NavMesh. |
center | Gets or sets the center position of the modifier volume. |
size | Gets or sets the dimensions of the cuboid modifier volume. |
Methods
Name | Description |
---|---|
AffectsAgentType(int) | Verifies whether this modifier volume can affect in any way the generation of a NavMesh for a given agent type. |