> For the complete documentation index, see [llms.txt](https://flora.magneticarcade.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flora.magneticarcade.com/getting-started/editor-context.md).

# 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="/files/4ItTSHENABtTNvYc1MyO" 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` .
