Terrain Samples
Scenes showcasing runtime terrain features.
These sample scenes demonstrate how to interact with and modify terrain tree instances at runtime using Flora. They showcase how foliage instances can be animated, transformed, disabled, or replaced — all without relying on GameObjects.
Tree Effect
This sample shows how to animate and transform terrain tree instances within a defined sphere at runtime. It is the same effect featured in the promotional video.
Instances are smoothly displaced based on their distance from the sphere’s center
Demonstrates Flora’s ability to animate terrain trees without converting them to GameObjects
Useful for dynamic instance effects

Tree Wrecking Ball
This sample demonstrates physics-based interaction with terrain tree instances using a dynamic wrecking ball.
Key Features
Collision Detection: Tree instances are tested for collision against a moving
Rigidbody
.Instance Disabling: On impact, the original tree instance is disabled, making it invisible.
Transform Querying: Flora is used to retrieve the original transform and prefab of the tree.
Prefab Conversion: New
GameObject
instances are spawned in place of disabled trees, each with:A
Rigidbody
for physics simulationA
FloraInstanceRenderer
so they continue to render using Flora

Last updated