Contains and represents NavMesh data.
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.
| 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). |
| Constructor | Description |
|---|---|
| NavMeshData | Constructs a new object for representing a NavMesh for the default agent type. |
| Property | Description |
|---|---|
| hideFlags | Controls whether the object is hidden, saved with the scene, and editable by the user. |
| name | The name of the object. |
| Method | Description |
|---|---|
| GetEntityId | Gets the EntityId of the object. |
| GetHashCode | Returns the hash code for the object. |
| ToString | Returns the name of the object. |
| Method | Description |
|---|---|
| Destroy | Removes a GameObject, component, or asset. |
| DestroyImmediate | Destroys the specified object immediately. Use with caution and in Edit mode only. |
| DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
| FindAnyObjectByType | Retrieves any active loaded object of Type T. |
| FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
| Instantiate | Clones the object original and returns the clone. |
| InstantiateAsync | Captures a snapshot of the original object that's related to another GameObject and obtains an AsyncInstantiateOperation instance of the resulting objects. |
| Operator | Description |
|---|---|
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |
| operator == | Compares two object references to see if they refer to the same object. |