The NavMeshBaker turns the intermediate navmesh format NavMeshBakeData into a Quantum NavMesh.
More...
|
static void | BakeIntoExistingNavMesh (NavMeshBakeData bakeData, NavMesh existingNavmesh, IProgressBar progressBar=null) |
| Bake navmesh intermediate date (bake data) into an existing Quantum navmesh asset without passing a map. Used for example to update a navmesh that uses serialization type NavMeshSerializeType.BakeDataOnly. More...
|
|
static NavMesh | BakeNavMesh (Map map, NavMeshBakeData bakeData, IProgressBar progressBar=null, NavMesh existingNavmesh=null) |
| Bake navmesh intermediate date (bake data) into a Quantum navmesh asset. More...
|
|
static bool | LocateGridCells (ref int xMin, ref int xMax, ref int yMin, ref int yMax, FPVector2 worldOffset, int gridNodeSize, int gridSizeX, int gridSizeY, params FPVector2[] positions) |
| Find and set min and max grid cell indices for the given positions. More...
|
|
The NavMeshBaker turns the intermediate navmesh format NavMeshBakeData into a Quantum NavMesh.
◆ BakeIntoExistingNavMesh()
Bake navmesh intermediate date (bake data) into an existing Quantum navmesh asset without passing a map. Used for example to update a navmesh that uses serialization type NavMeshSerializeType.BakeDataOnly.
- Parameters
-
bakeData | Bake data |
progressBar | Progress bar instance, can be null |
existingNavmesh | Existing navmesh asset to update, can be null |
◆ BakeNavMesh()
Bake navmesh intermediate date (bake data) into a Quantum navmesh asset.
- Parameters
-
map | Map asset that the navmesh belongs to, set this to null if you are updating an existing navmesh |
bakeData | Bake data |
progressBar | Progress bar instance, can be null |
existingNavmesh | Existing navmesh asset to update, can be null |
- Returns
- Baked navmesh asset
◆ LocateGridCells()
static bool Quantum.NavMeshBaker.LocateGridCells |
( |
ref int |
xMin, |
|
|
ref int |
xMax, |
|
|
ref int |
yMin, |
|
|
ref int |
yMax, |
|
|
FPVector2 |
worldOffset, |
|
|
int |
gridNodeSize, |
|
|
int |
gridSizeX, |
|
|
int |
gridSizeY, |
|
|
params FPVector2[] |
positions |
|
) |
| |
|
inlinestatic |
Find and set min and max grid cell indices for the given positions.
- Parameters
-
xMin | Min x cell index |
xMax | Max x cell index |
yMin | Min y cell index |
yMax | Max y cell index |
worldOffset | World offset |
gridNodeSize | Grid node size |
gridSizeX | Grid size x of the navmesh |
gridSizeY | Grid size y of the navmesh |
positions | Positions to use as bounds for the resulting cell indecies |
- Returns