Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

LightmapParameters

class in UnityEditor

/

Inherits from:Object

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

Submission failed

For 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.

Close

Cancel

Switch to Manual

Description

Configures how Unity bakes lighting and can be assigned to a LightingSettings instance or asset.

Note that Unity's built-in Lightmap Parameters Assets are read-only.

Additional resources: LightmapParameters.SetLightmapParametersForLightingSettings.

Properties

Property Description
antiAliasingSamplesThe kernel width the lightmapper uses when sampling a lightmap texel.
AOAntiAliasingSamplesThe maximum number of times to supersample a texel to reduce aliasing in AO.
AOQualityThe number of rays to cast for computing ambient occlusion.
backFaceToleranceThe percentage of rays shot from a ray origin that must hit front faces to be considered usable.
bakedLightmapTagBakedLightmapTag is an integer that affects the assignment to baked lightmaps. Objects with different values for bakedLightmapTag are guaranteed to not be assigned to the same lightmap even if the other baking parameters are the same.
blurRadiusThe radius (in texels) of the post-processing filter that blurs baked direct lighting.
directLightQualityThe number of rays used for lights with an area. Allows for accurate soft shadowing.
limitLightmapCountIf enabled, objects sharing the same lightmap parameters will be packed into LightmapParameters.maxLightmapCount lightmaps.
maxLightmapCountThe maximum number of lightmaps created for objects sharing the same lightmap parameters. This property is ignored if LightmapParameters.limitLightmapCount is false.
pushoffThe distance to offset the ray origin from the geometry when performing ray tracing, in modelling units. Unity applies the offset to all baked lighting: direct lighting, indirect lighting, environment lighting and ambient occlusion.
resolutionThe texel resolution per meter used for real-time lightmaps. This value is multiplied by LightingSettings.indirectResolution.

Public Methods

Method Description
AssignToLightingSettingsAssignes itself to a LightingSettings instance or asset.

Static Methods

Method Description
GetLightmapParametersForLightingSettingsReturns the assigned LightmapParameters for the specified LightingSettings.
SetLightmapParametersForLightingSettingsSets the LightmapParameters for the specified LightingSettings.

Inherited Members

Properties

PropertyDescription
hideFlagsControls whether the object is hidden, saved with the scene, and editable by the user.
nameThe name of the object.

Public Methods

MethodDescription
GetEntityIdGets the EntityId of the object.
GetHashCodeReturns the hash code for the object.
ToStringReturns the name of the object.

Static Methods

MethodDescription
DestroyRemoves a GameObject, component, or asset.
DestroyImmediateDestroys the specified object immediately. Use with caution and in Edit mode only.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindAnyObjectByTypeRetrieves any active loaded object of Type T.
FindObjectsByTypeRetrieves a list of all loaded objects of Type type.
InstantiateClones the object original and returns the clone.
InstantiateAsyncCaptures a snapshot of the original object that's related to another GameObject and obtains an AsyncInstantiateOperation instance of the resulting objects.

Operators

OperatorDescription
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.