Photon Quantum 3.0.0

Static Public Member Functions | List of all members
Quantum.NavMeshBaker Class Reference

The NavMeshBaker turns the intermediate navmesh format NavMeshBakeData into a Quantum NavMesh. More...

Static Public Member Functions

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...
 

Detailed Description

The NavMeshBaker turns the intermediate navmesh format NavMeshBakeData into a Quantum NavMesh.

Member Function Documentation

◆ BakeIntoExistingNavMesh()

static void Quantum.NavMeshBaker.BakeIntoExistingNavMesh ( NavMeshBakeData  bakeData,
NavMesh  existingNavmesh,
IProgressBar  progressBar = null 
)
inlinestatic

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
bakeDataBake data
progressBarProgress bar instance, can be null
existingNavmeshExisting navmesh asset to update, can be null

◆ BakeNavMesh()

static NavMesh Quantum.NavMeshBaker.BakeNavMesh ( Map  map,
NavMeshBakeData  bakeData,
IProgressBar  progressBar = null,
NavMesh  existingNavmesh = null 
)
inlinestatic

Bake navmesh intermediate date (bake data) into a Quantum navmesh asset.

Parameters
mapMap asset that the navmesh belongs to, set this to null if you are updating an existing navmesh
bakeDataBake data
progressBarProgress bar instance, can be null
existingNavmeshExisting 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
xMinMin x cell index
xMaxMax x cell index
yMinMin y cell index
yMaxMax y cell index
worldOffsetWorld offset
gridNodeSizeGrid node size
gridSizeXGrid size x of the navmesh
gridSizeYGrid size y of the navmesh
positionsPositions to use as bounds for the resulting cell indecies
Returns