box-openInstance Container

A serialized collection of instances that do not require individual GameObjects.

The Instance Container component is designed to manage large groups of instanced meshes—such as foliage, debris, or props—without requiring individual GameObjects.

It serializes instance transform data, integrates with the central FloraSystem, and exposes a simple API for adding, updating, querying, and removing instances at runtime or in the editor.

See also: Conversion

For workflows without Unity Terrain, this is the primary Flora path for managing large groups of instances without individual GameObjects. See Container Mesh Sample and Container Prefab Sample. For Unity Terrain trees/details, use Terrain Provider.

Instance Container UI

Properties

Prefab

The prefab rendered by all instances in this container. Changing this will rebuild all instances.

InstanceHandles

An array of runtime instance handles, used internally by Flora to track each instance.

LocalTransforms

An array of container-space transforms (position, rotation, scale) for each instance.


Example

Basic runtime usage for spawning instances into a container:

Last updated