NavMeshData
Contains and represents NavMesh data.
Read time 4 minutesLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEngine.AI
- Assembly: UnityEngine.AIModule
- Inherits from: Object
public sealed class NavMeshData : Object
Remarks
An object of this class can be used for creating instances of NavMeshes. See NavMesh.AddNavMeshData. The contained NavMesh can be built and updated using the build API. See NavMeshBuilder and methods therein.
Constructors
Constructor | Description |
|---|---|
| NavMeshData() | Constructs a new object for representing a NavMesh for the default agent type. |
| NavMeshData(System.Int32) | Constructs a new object representing a NavMesh for the specified agent type. |
Properties
Property | Description |
|---|---|
| position | Gets or sets the world space position of the NavMesh data. |
| rotation | Gets or sets the orientation of the NavMesh data. |
| sourceBounds | Returns the bounding volume of the input geometry used to build this NavMesh (Read Only). |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |