Page cover

Runtime Samples

Samples showcasing Flora's runtime features.

Fish Boids

The Fish Boids sample scene demonstrates how to use Flora for large-scale, runtime-driven instance animation by adapting Unity’s original ECS BoidSample. It showcases how to spawn, update, and synchronize thousands of animated instances efficiently — with full support for motion vectors.

Key Concepts

  • Each fish is represented as a Flora instance, without requiring GameObjects.

  • Boid movement is simulated using jobs and native collections, then synced to Flora each frame.

  • Flora handles rendering, culling, batching, and motion vectors automatically.

Core Classes

FishSchool

FishSimulation

Last updated