# lightmapPackingMethod

> The algorithm used to pack UV charts into lightmaps.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public LightingSettings.LightmapPackingMethod lightmapPackingMethod { get; set; }
```

### Remarks

[LightingSettings.LightmapPackingMethod.XAtlas](/engine/6000.6/script-reference/unityengine/lightingsettings/lightmappackingmethod/xatlas.md) is slightly slower than [LightingSettings.LightmapPackingMethod.Unity](/engine/6000.6/script-reference/unityengine/lightingsettings/lightmappackingmethod/unity.md), but produces better results.

Use [LightingSettings.LightmapPackingMethod.Unity](/engine/6000.6/script-reference/unityengine/lightingsettings/lightmappackingmethod/unity.md) for compatability with older versions of Unity.

Additional Resources: [LightingSettings.lightmapPackingMode](/engine/6000.6/script-reference/unityengine/lightingsettings/lightmappackingmode-1.md).
