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. |
◆ OnCollectColliders2D()
Is called during colliders baking with the current list of colliders found on a scene. Colliders can be added to the list or removed from it (e.g. playable area pruning).
◆ OnCollectColliders3D()
Is called during colliders baking with the current list of colliders found on a scene. Colliders can be added to the list or removed from it (e.g. playable area pruning).
◆ 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. |
◆ OnBakeTerrains()
Is called after terrain colliders in the given scene are baked.
- Parameters
-
| data | The MapData object that is currently baked. |
| terrainColliders | List of baked terrain colliders. |