Container Samples
Scenes showcasing FloraInstanceContainer and FloraInstanceRenderer workflows without Unity Terrain.
These scenes demonstrate FloraInstanceContainer and FloraInstanceRenderer workflows without Unity Terrain.
These samples do not require a Unity
Terraincomponent. They useFloraInstanceContainerto manage serialized collections of instances without individual GameObjects, andFloraInstanceRendererto register prefab instances with the Flora system.
Container Mesh Sample
This sample demonstrates a rotated wall mesh with four child FloraInstanceContainer objects. Each child container targets a different prefab, and all container instances maintain the wall's parent-space rotation/motion.
Scene Path
Samples~/Examples/Containers/Scenes/ContainerMeshSample.unity
What This Demonstrates
Container-driven instancing on a rotated wall object without Unity
Terrain.Four sub-containers, each with a different target prefab (
Heather/Fernvariants).Stable parent/child transform inheritance from the wall to all container content.
Run and Verify
Open
ContainerMeshSampleand press Play.Confirm four container groups render from container data across the rotated wall.
Confirm each container group uses its own prefab target.
Confirm all container instances rotate/move with the parent wall while keeping stable local offsets.
Expected result: all four container groups render on the rotated wall, keep their per-container prefab identity, and stay parent-locked to the wall transform without Unity Terrain.
Common Failure Checks
No instances visible: verify Flora scene rendering is enabled and the sample setup prefab is active.
Incorrect instance placement/orientation: confirm the four containers remain parented under the rotated wall hierarchy.
Wrong prefab assignment: verify each container's
Prefabreference matches its intended variant.Unexpected terrain assumptions: this sample should run with no Unity
Terraincomponent.
Container Prefab Sample
This sample demonstrates hybrid prefab workflows using FloraInstanceRenderer and FloraInstanceContainer:
Parent rock prefabs with
LODGroup+FloraInstanceRendererrender as instanced prefab objects.Child
FloraInstanceContainerobjects hold non-GameObjectplant instances that stay parent-relative.
Canonical scene name is
ContainerPrefabSample(sometimes referred to as "ContainerPrefabSamples" in conversation).
Scene Path
Samples~/Examples/Containers/Scenes/ContainerPrefabSample.unity
What This Demonstrates
Rotating
LODGrouprock prefabs rendered throughFloraInstanceRenderer.Child
FloraInstanceContainerplant content authored without per-plantGameObjectrender paths.Parent/child transform relationship preservation between instanced rock prefabs and child plant containers.
Non-Terrain deployment of this hybrid
FloraInstanceRenderer+FloraInstanceContainerworkflow.
Run and Verify
Open
ContainerPrefabSampleand press Play.Confirm rotating rock prefabs render correctly as
LODGroupinstances throughFloraInstanceRenderer.Confirm child container plant instances move with their parent rocks and keep stable relative offsets.
Confirm all content renders correctly across the floor.
Last updated
