Lightmapping

class in UnityEditor

Switch to Manual

Description

Allows to control the lightmapping job.

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

See Also: LightmapEditorSettings.

Static Variables

bakedGIIs baked GI enabled?
bounceBoostBoost the albedo.
buildProgressReturns the current lightmapping build progress or 0 if Lightmapping.isRunning is false.
completedDelegate which is called when bake job is completed.
giWorkflowModeThe 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.
indirectOutputScaleScale for indirect lighting.
isRunningReturns true when the bake job is running, false otherwise (Read Only).
lightingDataAssetThe lighting data asset used by the active Scene.
realtimeGIIs realtime GI enabled?

Static Functions

BakeStarts a synchronous bake job.
BakeAsyncStarts an asynchronous bake job.
BakeMultipleScenesBakes an array of Scenes.
BakeReflectionProbeStarts a synchronous bake job for the probe.
CancelCancels the currently running asynchronous bake job.
ClearDeletes all lightmap assets and makes all lights behave as if they weren't baked yet.
ClearDiskCacheClears the cache used by lightmaps, reflection probes and default reflection.
ClearLightingDataAssetRemove the lighting data asset used by the current Scene.
ForceStopForce the Progressive Path Tracer to stop baking and use the computed results as they are.
GetTerrainGIChunksGet how many chunks the terrain is divided into for GI baking.
TetrahedralizeCalculates a Delaunay Tetrahedralization of the 'positions' point set - the same way the lightmapper.

Delegates

OnCompletedFunctionDelegate used by Lightmapping.completed callback.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961