Derive from the class to receive callbacks during Quantum map baking. Add the QuantumMapBakeAssemblyAttribute assembly attribute when the implementation is located in different assemblies.
More...
Derive from the class to receive callbacks during Quantum map baking. Add the QuantumMapBakeAssemblyAttribute assembly attribute when the implementation is located in different assemblies.
◆ OnBeforeBake() [1/2]
abstract void Quantum.MapDataBakerCallback.OnBeforeBake |
( |
QuantumMapData |
data | ) |
|
|
pure virtual |
Is called in the beginning of map baking.
- Parameters
-
data | The MapData object that is currently baked. |
◆ OnBeforeBake() [2/2]
Is called in the beginning of map baking similar to OnBeforeBake(QuantumMapData) with a different signature.
- Parameters
-
data | Map data |
buildTrigger | Originating build trigger |
bakeFlags | Use build flags |
◆ OnBake()
abstract void Quantum.MapDataBakerCallback.OnBake |
( |
QuantumMapData |
data | ) |
|
|
pure virtual |
Is called after map baking when colliders and prototypes have been baked and before navmesh baking.
- Parameters
-
◆ OnBeforeBakeNavMesh()
virtual void Quantum.MapDataBakerCallback.OnBeforeBakeNavMesh |
( |
QuantumMapData |
data | ) |
|
|
inlinevirtual |
Is called before any navmeshes are generated or any bake data is collected.
- Parameters
-
data | The MapData object that is currently baked. |
◆ OnCollectNavMeshBakeData()
Is called during navmesh baking with the current list of bake data retreived from Unity navmeshes flagged for Quantum navmesh baking. Add new BakeData objects to the navMeshBakeData list.
- Parameters
-
data | The MapData object that is currently baked. |
navMeshBakeData | Current list of bake data to be baked |
◆ OnCollectNavMeshes()
Is called after navmesh baking before serializing them to assets. Add new NavMesh objects the navmeshes list.
- Parameters
-
data | The MapData object that is currently baked. |
navmeshes | Current list of baked navmeshes to be saved to assets. |
◆ OnBakeNavMesh()
virtual void Quantum.MapDataBakerCallback.OnBakeNavMesh |
( |
QuantumMapData |
data | ) |
|
|
inlinevirtual |
Is called after the navmesh generation has been completed. Navmeshes assets references are stored in data.Asset.Settings.NavMeshLinks.
- Parameters
-
data | The MapData object that is currently baked. |