For the complete documentation index, see llms.txt. This page is also available as Markdown.

Instance Container

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

An Instance Container stores many instance transforms without individual GameObjects. Use it for foliage, debris, or props outside Unity Terrain.

See Conversion and Container Samples.

For Unity Terrain trees and details, use Terrain Provider.

Instance Container UI

Properties

Prefab

The prefab rendered by all instances in this container. Changing it rebuilds every instance and invalidates the previous runtime handles.

InstanceHandles

Runtime handles for the container's instances.

LocalTransforms

Container-space position, rotation, and scale. Moving the container moves all instances.

StaticSpatialCacheMode

Controls Static Spatial Caching. Caching requires a Static GameObject, an assigned prefab, at least one instance, and the project setting.


Example

Instance changes invalidate cached spatial data. Save the scene or rebuild the cache before profiling scene loading.

Last updated