Page cover

Conversion

Convert GameObject-based prefabs to instanced data and back again, with full round-trip support.

Flora provides multiple ways to convert GameObject-based prefabs into GPU-instanced data and back again. This is especially useful when working with LODGroups or MeshRenderers in large scenes.

Note: In order to be rendered by Flora, each object must be part of a prefab or prefab variant. Flora uses the prefab asset to determine shared render states and to identify instance types in the scene.


Contextual Menus

Flora includes several context menu utilities for converting GameObjects into:

  • Instance Renderers

  • Instance Containers

  • Terrain Trees

These options appear when right-clicking a selection of prefab instances in either the Scene View or the Hierarchy.


Instance Renderer

Adds a FloraInstanceRenderer component to any prefab instance that contains an LODGroup or MeshRenderer. This enables the prefab to be rendered using Flora’s instancing system.

Convert to Instance Renderer

Instance Container

Converts a group of prefab instances into a lightweight, serialized container of transforms. Ideal for static details or foliage that don’t require:

  • Terrain placement

  • Scripts

  • Colliders

Note: The original GameObjects will be destroyed after conversion.

Convert to Instance Container

Trees

Flora also includes utilities for converting GameObjects into tree instances, as long as the object is within the bounds of a terrain.

Convert to Tree

Converted trees can be reverted back to GameObjects using Flora’s Editor Context Tools:

  1. Activate the context from the Scene View overlay.

  2. Select tree instances in the Scene View.

  3. Right-click to open the context menu.

  4. Choose the option to replace trees with GameObjects.

Convert trees back to GameObjects

To convert all trees of a specific prototype, use the Edit Trees button in the Terrain Inspector.

Edit Trees in Terrain Inspector

Last updated