GetCornersNonAlloc
7/14/25Less than 1 minute
NavMeshPath.GetCornersNonAlloc()
Calculate the corners for the path.
Returns:
| type | Description |
|---|---|
| number | The number of corners along the path - including start and end points. |
| Vector3[] | Array of path corners. |
Usage
---@type NavMeshPath
local navmeshpath;
local val0, val1 = navmeshpath.GetCornersNonAlloc()Extra Detail
This function is similar to the corners property except that the results are returned in the supplied array.

