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.
CloseAllows to control the lightmapping job.
Before starting the job the bake settings can be set via LightmapEditorSettings.
See Also: LightmapEditorSettings.
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. |
isRunning | Returns true when the bake job is running, false otherwise (Read Only). |
lightmapSnapshot | The lightmap snapshot used by the active scene. |
Bake | Stars a synchronous bake job. |
BakeAsync | Starts an asynchronous bake job. |
BakeLightProbesOnly | Starts a synchronous bake job, but only bakes light probes. |
BakeLightProbesOnlyAsync | Starts an asynchronous bake job, but only bakes light probes. |
BakeMultipleScenes | Bakes an array of scenes. |
BakeReflectionProbe | Starts a synchronous bake job for the probe. |
BakeSelected | Starts a synchronous bake job for the selected objects. |
BakeSelectedAsync | Starts an asynchronous bake job for the selected objects. |
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. |
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. |