Выберите подходящий для вас язык программирования. Все примеры кода будут представлены на выбранном языке.
class in UnityEditor
Благодарим вас за то, что вы помогаете нам улучшить качество документации по Unity. Однако, мы не можем принять любой перевод. Мы проверяем каждый предложенный вами вариант перевода и принимаем его только если он соответствует оригиналу.
ЗакрытьПо определённым причинам предложенный вами перевод не может быть принят. Пожалуйста <a>попробуйте снова</a> через пару минут. И выражаем вам свою благодарность за то, что вы уделяете время, чтобы улучшить документацию по Unity.
ЗакрытьAllows to control the lightmapping job.
Before starting the job the bake settings can be set via LightmapEditorSettings.
See Also: LightmapEditorSettings.
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. |
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. |
ClearLightingDataAsset | Remove the lighting data asset used by the current scene. |
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. |