Photon Quantum 3.0.0

Public Member Functions | List of all members
Quantum.MapDataBakerCallback Class Referenceabstract

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

Public Member Functions

abstract void OnBake (QuantumMapData data)
 Is called after map baking when colliders and prototypes have been baked and before navmesh baking. More...
 
virtual void OnBakeNavMesh (QuantumMapData data)
 Is called after the navmesh generation has been completed. Navmeshes assets references are stored in data.Asset.Settings.NavMeshLinks. More...
 
abstract void OnBeforeBake (QuantumMapData data)
 Is called in the beginning of map baking. More...
 
virtual void OnBeforeBake (QuantumMapData data, QuantumMapDataBaker.BuildTrigger buildTrigger, QuantumMapDataBakeFlags bakeFlags)
 Is called in the beginning of map baking similar to OnBeforeBake(QuantumMapData) with a different signature. More...
 
virtual void OnBeforeBakeNavMesh (QuantumMapData data)
 Is called before any navmeshes are generated or any bake data is collected. More...
 
virtual void OnCollectNavMeshBakeData (QuantumMapData data, List< NavMeshBakeData > navMeshBakeData)
 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. More...
 
virtual void OnCollectNavMeshes (QuantumMapData data, List< Quantum.NavMesh > navmeshes)
 Is called after navmesh baking before serializing them to assets. Add new NavMesh objects the navmeshes list. More...
 

Detailed Description

Derive from the class to receive callbacks during Quantum map baking. Add the QuantumMapBakeAssemblyAttribute assembly attribute when the implementation is located in different assemblies.

Member Function Documentation

◆ OnBeforeBake() [1/2]

abstract void Quantum.MapDataBakerCallback.OnBeforeBake ( QuantumMapData  data)
pure virtual

Is called in the beginning of map baking.

Parameters
dataThe MapData object that is currently baked.

◆ OnBeforeBake() [2/2]

virtual void Quantum.MapDataBakerCallback.OnBeforeBake ( QuantumMapData  data,
QuantumMapDataBaker.BuildTrigger  buildTrigger,
QuantumMapDataBakeFlags  bakeFlags 
)
inlinevirtual

Is called in the beginning of map baking similar to OnBeforeBake(QuantumMapData) with a different signature.

Parameters
dataMap data
buildTriggerOriginating build trigger
bakeFlagsUse 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
data

◆ OnBeforeBakeNavMesh()

virtual void Quantum.MapDataBakerCallback.OnBeforeBakeNavMesh ( QuantumMapData  data)
inlinevirtual

Is called before any navmeshes are generated or any bake data is collected.

Parameters
dataThe MapData object that is currently baked.

◆ OnCollectNavMeshBakeData()

virtual void Quantum.MapDataBakerCallback.OnCollectNavMeshBakeData ( QuantumMapData  data,
List< NavMeshBakeData navMeshBakeData 
)
inlinevirtual

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
dataThe MapData object that is currently baked.
navMeshBakeDataCurrent list of bake data to be baked

◆ OnCollectNavMeshes()

virtual void Quantum.MapDataBakerCallback.OnCollectNavMeshes ( QuantumMapData  data,
List< Quantum.NavMesh navmeshes 
)
inlinevirtual

Is called after navmesh baking before serializing them to assets. Add new NavMesh objects the navmeshes list.

Parameters
dataThe MapData object that is currently baked.
navmeshesCurrent 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
dataThe MapData object that is currently baked.