Select your preferred scripting language. All code snippets will be displayed in this language.
class in UnityEditor
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
CloseAllows 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 | Stars 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. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information