# bruteForcePacking

> Whether to exhaustively check every possible lightmap layout when packing lightmaps.

## Definition

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

```csharp
public bool bruteForcePacking { get; set; }
```

### Remarks

Enabling this may significantly increase the time taken to calculate lightmap packing, but it helps ensure that the most optimal possible packing will be used. Use with caution.

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

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