Allows to control the lightmapping job.
Before starting the job the bake settings can be set via LightingSettings.
Additional resources: LightingSettings.
bakedGI | This property is now obsolete. Use LightingSettings.bakedGI. |
buildProgress | Returns the current lightmapping build progress or 0 if Lightmapping.isRunning is false. |
isRunning | Returns true when the bake job is running, false otherwise (Read Only). |
lightingDataAsset | The lighting data asset used by the active Scene. |
lightingSettings | The LightingSettings that will be used for the current Scene. Will throw an exception if it is null. |
lightingSettingsDefaults | Default LightingSettings that Unity uses for Scenes where lightingSettings is not assigned. (Read only) |
realtimeGI | This property is now obsolete. Use LightingSettings.realtimeGI. |
Bake | Starts a synchronous bake job. |
BakeAsync | Starts an asynchronous bake job. |
BakeMultipleScenes | Bakes an array of Scenes. |
BakeReflectionProbe | Starts a synchronous bake job for the probe. |
Cancel | Cancels the currently running asynchronous bake job. |
Clear | Deletes all runtime data for the currently loaded Scenes. |
ClearDiskCache | Clears the cache used by lightmaps, reflection probes and default reflection. |
ClearLightingDataAsset | For the currently loaded Scenes, this method deletes the Lighting Data Asset and any linked lightmaps and Reflection Probe assets. |
GetAdditionalBakeDelegate | Get the currently set additional bake delegate. |
GetLightingSettingsForScene | Gets the LightingSettings object of a Scene object. |
GetTerrainGIChunks | Get how many chunks the terrain is divided into for GI baking. |
ResetAdditionalBakeDelegate | Resets the additional bake delegate to Unity's default. |
SetAdditionalBakeDelegate | Set a delegate that bakes additional data. This delegates must set its done parameter to true once baking is finished to unlock the baking pipeline. Must be reset by calling ResetDelegate again. |
SetLightingSettingsForScene | Applies the settings specified in the LightingSettings object to the Scene object. |
SetLightingSettingsForScenes | Applies the settings specified in the LightingSettings object to an array of Scene objects. |
Tetrahedralize | Calculates tetrahderons from positions using Delaunay Tetrahedralization. |
TryGetLightingSettings | Fetches the Lighting Settings for the current Scene. Will return false if it is null. |
bakeCancelled | Event which is called when bake job is cancelled. |
bakeCompleted | Event which is called when bake job is completed. Only called when LightingSettings.autoGenerate is set to false. |
bakeStarted | Event which is called when a bake is started. Only called when LightingSettings.autoGenerate is set to false. |
lightingDataAssetCleared | Event which is called when a LightingData asset is removed from the project. |
lightingDataCleared | Event which is called when baked Global Illumination data is cleared from the scene and from renderers. |
lightingDataUpdated | Event which is called when any lighting data is updated as part of the GI backing process. |
started | Delegate which is called when bake job is started. |
AdditionalBakeDelegate | Delegate called at the last stage of the baking pipeline. |
OnCompletedFunction | Delegate used by Lightmapping.completed callback. |
OnStartedFunction | Delegate used by Lightmapping.started callback. |