Skip to content

Quick Start

  1. Open AnimationShowcase.unity.
  2. Select Generated/Ecology/EcosystemConfig_Demo.
  3. Confirm that every enabled entry has a species name, fish prefab and ecology profile.
  4. Enter Play Mode.
  5. Select a fish from the observer panel to follow it.

What happens at runtime

EcosystemSpawner reads the config and creates a runtime population root. Each entry receives randomized size and locomotion values from its configured ranges. Ecology components are added to runtime instances; source fish prefabs remain unchanged.

The demo currently demonstrates:

  • Fish wandering inside FishSwimVolume.
  • Plants acting as infinite feeding sources.
  • Carnivores selecting viable prey.
  • Prey interrupting feeding only for meaningful nearby threats.
  • Schooling, growth, reproduction, death and global population limits.

Resetting the demo

Run Setup Demo Scene to regenerate terrain, decoration, visual effects and the reusable ecosystem prefab connection. Existing non-empty species entries are not replaced.