
Conversion
Converting GameObjects and Components to and from Flora instances.
For cases where you want to use Flora instancing with LODGroups and MeshRenderers in your scene, Flora provides a few methods of converting objects and instances in bulk. Note, that for individual objects to be rendered by Flora, they must be a part of a prefab or prefab variant. Flora uses the prefab asset to determine what instances share render states, as well for querying what types of instances are in the scene.
Contextual Menus
Flora provides a set of contextual helpers for converting GameObjects to instances, containers, and even Terrain trees. The conversion operations are available when right-clicking a selection of prefab instances either in the scene view, or the scene hierarchy.
Instance Renderer
Adds the instance renderer component to any prefab instance of an LODGroup or MeshRenderer, allowing the prefab to be rendered with Flora.
Instance Container
Takes a group of prefab instances and converts them into a lightweight container of serialized transforms. Useful for small details or foliage that don't need to be on the terrain and don't need scripts or colliders. Note: The GameObjects will be destroyed when converted into a container.
Trees
Flora also provides convenience operators for converting GameObjects to Trees. The only requirement is that the GameObject is within the bounds of a terrain.
Trees can also be converted back into GameObjects within the Terrain inspector, with the Edit Trees button while a Tree is selected:

Last updated