Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Lightmapping

Namespace: UnityEditor

Suggest a change

Success!

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.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Allows to control the lightmapping job.

Before starting the job the bake settings can be set via LightmapEditorSettings.

See Also: LightmapEditorSettings.

Static Variables

isRunning Returns true when the bake job is running, false otherwise (Read Only).

Static Functions

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.
BakeSelected Stars 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.
Tetrahedralize Calculates a Delaunay Tetrahedralization of the 'positions' point set - the same way the lightmapper.