> 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

<figure><img src="/files/YcawcjipANCJ8EWS4DYD" 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="/files/u2hmdD2Xdgi0Yk7ENCfT" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/oCb1jD8syhMwUeR8Ad0w" alt=""><figcaption></figcaption></figure>

#### Pro Tips 💡

<figure><img src="/files/LUSWX29YHvFOyjJmRbtQ" 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**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://harpiagames.gitbook.io/prefab-brush-documentation/detailed-guide/working-with-terrains/terrain-fit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
