# Edit Mode

Flora provides a specialized [editor context](https://docs.unity3d.com/6000.1/Documentation/ScriptReference/EditorTools.EditorToolContext.html) for working with instances—allowing you to **select**, **move**, **rotate**, and **delete** instances in both containers and terrain trees. This is especially useful in scenarios where instances do not have associated *GameObjects*.

***

## Instance Editing Features

With the editor context active, you can use Unity’s built-in transform tools to:

* Select individual instances (e.g. trees or container instances)
* Move and rotate instances directly in the Scene View
* Delete instances

This functionality is available as long as:

* Flora is **enabled on the terrain**, and
* The **edit context** is active

***

## Activating the Context

To activate Flora's instance editing mode:

1. Look for the overlay toggle above the **Scene View** toolbar.
2. Click the icon with **three stacked dots** to enable the context.

<figure><img src="https://2882982566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fyo4B7EVXffipTxnJzee6%2Fuploads%2Fgit-blob-746d5d1812de9c4e58c167162f6be70f9e535ffb%2Fscene-view-selection.webp?alt=media" alt="Scene View overlay toggle" width="563"><figcaption></figcaption></figure>

> **Note:** If your shaders are not properly configured for instanced selection, picking may not work correctly. The "ScenePickingPass" must have the following pragmas:
>
> ```hlsl
> #pragma target 4.5
> #pragma multi_compile _ DOTS_INSTANCING_ON
> ```
>
> Additionally ensure the fragment shader returns `unity_SelectionID` and **not** `_SelectionID` .


---

# Agent Instructions: 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://flora.magneticarcade.com/getting-started/editor-context.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.
