NavMesh
Used to access the World's baked NavMesh.
To get the NavMesh class, you must get its handler.
let NavMesh = instance.GetHandler("NavMesh")
You can then use the NavMesh property to access the NavMesh class.
Methods
| Method Name | Return Type | Parameters | Description |
|---|---|---|---|
| Raycast | NavMeshHit? | float3, float3, int | Trace a line between two points on the NavMesh |
| CalculatePath | bool | float3, float3, int, NavPath | Calculates a path between two points in a referenced NavPath, then returns if a complete or partial path was found |
| FindClosestEdge | NavMeshHit? | float3, int | Locates the closest NavMesh edge from a point on the NavMesh |
| SamplePosition | NavMeshHit? | float3, float, int | Finds the nearest point based on the NavMesh within a specified range |
Properties
| Property Name | Type | Description |
|---|---|---|
| AllAreas | int | Area mask constant that includes all NavMesh areas |