> For the complete documentation index, see [llms.txt](https://harpiagames.gitbook.io/prefab-brush-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://harpiagames.gitbook.io/prefab-brush-documentation/detailed-guide/working-with-terrains/terrain-fit.md).

# Terrain Fit

Automatically adapt the terrain to newly placed objects. Adjust the fit area, smoothing strength, and height offset for seamless integration.

<figure><img src="https://1236114686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FStnSJtFVa8qAPtMowHno%2Fuploads%2FCboNWxhRASZGVt7ri5R6%2F20260210_012306%5B00h00m00s-00h00m04s%5D.gif?alt=media&amp;token=3bbe41e4-8860-4ca5-8903-1eec99962c2b" alt=""><figcaption></figcaption></figure>

#### How to Use Terrain Fit

1. **Enable Precision Mode**\
   Terrain Fit works **only in Precision Mode**.
2. **Check Your Prefab**\
   Ensure your prefab contains **at least one Mesh Renderer** somewhere in its hierarchy.
3. **Enable Terrain Fit**\
   Toggle **Terrain Fit** on in the Precision Mode settings.
4. **Adjust the Settings**
   * **Size** – Controls the affected terrain area
   * **Offset** – Adjusts the vertical alignment between the object and the terrain
   * **Smoothness** – Defines how softly the terrain blends around the object

### Removing Trees

<figure><img src="https://1236114686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FStnSJtFVa8qAPtMowHno%2Fuploads%2F4Jhme4VvXKobXNLrgM8W%2F20260213_214224%5B00h00m10s-00h00m14s%5D.gif?alt=media&amp;token=f38edb25-0590-4fb4-a401-929fa4153ec0" alt=""><figcaption></figcaption></figure>

In order to remove trees, just check the "Remove Trees" Toogle

<figure><img src="https://1236114686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FStnSJtFVa8qAPtMowHno%2Fuploads%2FMAzBHy1ReDKcRMbkTL6v%2Fimage.png?alt=media&amp;token=1cca4d1f-108a-4e3a-9706-676e4d829d76" alt=""><figcaption></figcaption></figure>

#### Pro Tips 💡

<figure><img src="https://1236114686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FStnSJtFVa8qAPtMowHno%2Fuploads%2FzF6nvuKKkfVeXSAumax3%2F20260210_012316%5B00h00m03s-00h00m12s%5D.gif?alt=media&amp;token=b81a7fb3-6ec9-4159-a97a-8ee8c67dd8ac" alt=""><figcaption></figcaption></figure>

**Pro Tip 1 – Object Offset Shortcut**\
Hold **`T`** (default) and move your mouse **up or down** to adjust the object’s vertical offset.\
The terrain will automatically follow the object.

**Pro Tip 2 – Terrain Offset Shortcut**\
Hold **`H`** (default) and move your mouse **up or down** to offset the terrain **independently** from the object.

#### Important Notes ⚠️

* Terrain Fit **only works in Precision Mode**
* The placed object **must have at least one Mesh Renderer** in its hierarchy
* In **older Unity versions (2021–2022)**, Terrain Fit may cause minor lag while adjusting the terrain
  * No noticeable lag has been observed in **Unity 6**
