# CompressBounds()

> Compresses the _origin and _size of the Tilemap to bounds where Tile s exist.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Tilemaps](/engine/6000.7/script-reference/unityengine/tilemaps.md)
* **Assembly:** UnityEngine.TilemapModule

```csharp
public void CompressBounds()
```
