Allows to control the lightmapping job.
Before starting the job the bake settings can be set via LightmapEditorSettings.
See Also: LightmapEditorSettings.
bakedGI | Is baked GI enabled? |
bounceBoost | Boost the albedo. |
buildProgress | Returns the current lightmapping build progress or 0 if Lightmapping.isRunning is false. |
completed | Delegate which is called when bake job is completed. |
giWorkflowMode | The lightmap baking workflow mode used. Iterative mode is default, but you can switch to on demand mode which bakes only when the user presses the bake button. |
indirectOutputScale | Scale for indirect lighting. |
isRunning | Returns true when the bake job is running, false otherwise (Read Only). |
lightingDataAsset | The lighting data asset used by the active Scene. |
realtimeGI | Is realtime GI enabled? |
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 lightmap assets and makes all lights behave as if they weren't baked yet. |
ClearDiskCache | Clears the cache used by lightmaps, reflection probes and default reflection. |
ClearLightingDataAsset | Remove the lighting data asset used by the current Scene. |
ForceStop | Force the Progressive Path Tracer to stop baking and use the computed results as they are. |
GetTerrainGIChunks | Get how many chunks the terrain is divided into for GI baking. |
Tetrahedralize | Calculates a Delaunay Tetrahedralization of the 'positions' point set - the same way the lightmapper. |
OnCompletedFunction | Delegate used by Lightmapping.completed callback. |