Terrain Samples
Scenes showcasing runtime terrain features.
These scenes use Flora's runtime APIs to interact with Terrain trees.
Tree Effect
Animates Terrain trees inside a sphere.

Scene Path
Terrain/Scenes/TreeEffectSample.unity
Demonstrates
Tree instance query by sphere
Local-to-world retrieval and update
Per-instance runtime animation without converting trees to scene objects
APIs
FindInstancesIntersectingSphereMatching(...)GetInstanceLocalToWorlds(...)UpdateInstanceLocalToWorlds(...)FloraInstanceFilter.ByTrees()
Run
Open
TreeEffectSampleand press Play.Confirm trees inside the sphere animate and recover after leaving it.
Tree Wrecking Ball
Disables impacted Terrain trees and spawns Rigidbody replacements.

Scene Path
Terrain/Scenes/WreckingBallSample.unity
Demonstrates
Collision-region tree query
Instance enable/disable control
Runtime replacement with
GameObject+FloraInstanceRenderer
APIs
FindInstancesIntersectingSphereMatching(...)SetInstancesEnabled(...)GetInstanceWorldTransform(...)GetInstanceOwnerTerrain(...)GetInstanceTerrainTreeIndex(...)
Run
Open
WreckingBallSampleand press Play.Let wrecking ball collide with trees.
Confirm impacted Flora instances are hidden and replaced with Rigidbody objects.
Last updated
