# LightmapParameters

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

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule
* **Inherits from:** [Object](/engine/6000.7/script-reference/unityengine/object.md)

```csharp
public sealed class LightmapParameters : Object
```

## Remarks

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

Additional Resources: [LightmapParameters.SetLightmapParametersForLightingSettings](/engine/6000.7/script-reference/unityeditor/lightmapparameters/setlightmapparametersforlightingsettings.md).

## Properties

| Property                                                                                                         | Description                                                                                                                                                                                                                                                   |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [antiAliasingSamples](/engine/6000.7/script-reference/unityeditor/lightmapparameters/antialiasingsamples-1.md)   | The kernel width the lightmapper uses when sampling a lightmap texel.                                                                                                                                                                                         |
| [AOAntiAliasingSamples](/engine/6000.7/script-reference/unityeditor/lightmapparameters/aoantialiasingsamples.md) | The maximum number of times to supersample a texel to reduce aliasing in AO.                                                                                                                                                                                  |
| [AOQuality](/engine/6000.7/script-reference/unityeditor/lightmapparameters/aoquality.md)                         | The number of rays to cast for computing ambient occlusion.                                                                                                                                                                                                   |
| [backFaceTolerance](/engine/6000.7/script-reference/unityeditor/lightmapparameters/backfacetolerance.md)         | The percentage of rays shot from a ray origin that must hit front faces to be considered usable.                                                                                                                                                              |
| [bakedLightmapTag](/engine/6000.7/script-reference/unityeditor/lightmapparameters/bakedlightmaptag.md)           | BakedLightmapTag 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.                    |
| [blurRadius](/engine/6000.7/script-reference/unityeditor/lightmapparameters/blurradius.md)                       | The radius (in texels) of the post-processing filter that blurs baked direct lighting.                                                                                                                                                                        |
| [directLightQuality](/engine/6000.7/script-reference/unityeditor/lightmapparameters/directlightquality.md)       | The number of rays used for lights with an area. Allows for accurate soft shadowing.                                                                                                                                                                          |
| [limitLightmapCount](/engine/6000.7/script-reference/unityeditor/lightmapparameters/limitlightmapcount.md)       | If enabled, objects sharing the same lightmap parameters will be packed into [LightmapParameters.maxLightmapCount](/engine/6000.7/script-reference/unityeditor/lightmapparameters/maxlightmapcount.md) lightmaps.                                             |
| [maxLightmapCount](/engine/6000.7/script-reference/unityeditor/lightmapparameters/maxlightmapcount.md)           | The maximum number of lightmaps created for objects sharing the same lightmap parameters. This property is ignored if [LightmapParameters.limitLightmapCount](/engine/6000.7/script-reference/unityeditor/lightmapparameters/limitlightmapcount.md) is false. |
| [pushoff](/engine/6000.7/script-reference/unityeditor/lightmapparameters/pushoff.md)                             | The 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.                      |
| [resolution](/engine/6000.7/script-reference/unityeditor/lightmapparameters/resolution.md)                       | The texel resolution per meter used for real-time lightmaps. This value is multiplied by [LightingSettings.indirectResolution](/engine/6000.7/script-reference/unityengine/lightingsettings/indirectresolution.md).                                           |

## Methods

| Method                                                                                                                 | Description                                                                                                                 |
| ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| [AssignToLightingSettings](/engine/6000.7/script-reference/unityeditor/lightmapparameters/assigntolightingsettings.md) | Assignes itself to a [LightingSettings](/engine/6000.7/script-reference/unityengine/lightingsettings.md) instance or asset. |

## Static Methods

| Method                                                                                                                                                 | Description                                                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GetLightmapParametersForLightingSettings](/engine/6000.7/script-reference/unityeditor/lightmapparameters/getlightmapparametersforlightingsettings.md) | Returns the assigned [LightmapParameters](/engine/6000.7/script-reference/unityeditor/lightmapparameters.md) for the specified [LightingSettings](/engine/6000.7/script-reference/unityengine/lightingsettings.md). |
| [SetLightmapParametersForLightingSettings](/engine/6000.7/script-reference/unityeditor/lightmapparameters/setlightmapparametersforlightingsettings.md) | Sets the [LightmapParameters](/engine/6000.7/script-reference/unityeditor/lightmapparameters.md) for the specified [LightingSettings](/engine/6000.7/script-reference/unityengine/lightingsettings.md).             |

## Enums

| Enum                                                                                                                            | Description                                                              |
| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [LightmapParameters.AntiAliasingSamples](/engine/6000.7/script-reference/unityeditor/lightmapparameters/antialiasingsamples.md) | The number of sub-texel positions to use when sampling a lightmap texel. |

## Inheritance

**Inherited Members:**

* [Object.GetEntityId()](/engine/6000.7/script-reference/unityengine/object/getentityid.md)
* [Object.GetHashCode()](/engine/6000.7/script-reference/unityengine/object/gethashcode.md)
* [Object.InstantiateAsync\<T>(T)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.Instantiate(Object, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion\))
* [Object.Instantiate(Object, Vector3, Quaternion, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion-transform\))
* [Object.Instantiate(Object)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object\))
* [Object.Instantiate(Object, Scene)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-scene\))
* [Object.Instantiate\<T>(T, InstantiateParameters)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, InstantiateParameters)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate(Object, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform\))
* [Object.Instantiate(Object, Transform, bool)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform-bool\))
* [Object.Instantiate\<T>(T)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform, bool)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Destroy(Object, float)](/engine/6000.7/script-reference/unityengine/object/destroy.md)
* [Object.DestroyImmediate(Object, bool)](/engine/6000.7/script-reference/unityengine/object/destroyimmediate.md)
* [Object.FindObjectsByType(Type)](/engine/6000.7/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type\))
* [Object.FindObjectsByType(Type, FindObjectsInactive)](/engine/6000.7/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectsinactive\))
* [Object.DontDestroyOnLoad(Object)](/engine/6000.7/script-reference/unityengine/object/dontdestroyonload.md)
* [Object.FindAnyObjectByType\<T>()](/engine/6000.7/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(\))
* [Object.FindAnyObjectByType\<T>(FindObjectsInactive)](/engine/6000.7/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(findobjectsinactive\))
* [Object.FindObjectsByType\<T>()](/engine/6000.7/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(\))
* [Object.FindObjectsByType\<T>(FindObjectsInactive)](/engine/6000.7/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectsinactive\))
* [Object.FindAnyObjectByType(Type)](/engine/6000.7/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type\))
* [Object.FindAnyObjectByType(Type, FindObjectsInactive)](/engine/6000.7/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type-findobjectsinactive\))
* [Object.ToString()](/engine/6000.7/script-reference/unityengine/object/tostring.md)
* [Object.name](/engine/6000.7/script-reference/unityengine/object/name.md)
* [Object.hideFlags](/engine/6000.7/script-reference/unityengine/object/hideflags.md)

### Operators

| Operator                                                                           | Description                                                             |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [operator ==](/engine/6000.7/script-reference/unityengine/object/op-equality.md)   | Compares two object references to see if they refer to the same object. |
| [bool](/engine/6000.7/script-reference/unityengine/object/op-implicit.md)          | Determines whether the object exists.                                   |
| [operator !=](/engine/6000.7/script-reference/unityengine/object/op-inequality.md) | Compares if two objects refer to a different object.                    |
