# packingAttempts

> The number of packing attempts before determining the most efficient layout.

## Definition

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

```csharp
public int packingAttempts { get; set; }
```

### Remarks

Higher values may produce more efficient layouts but take longer to calculate.

This setting only has an effect when using [LightingSettings.LightmapPackingMethod.XAtlas](/engine/6000.7/script-reference/unityengine/lightingsettings/lightmappackingmethod/xatlas.md).

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