Dynamic Formation System is a runtime and editor toolkit for building, previewing, animating, and controlling groups of units in Unity.
Create procedural layouts such as circles, arcs, grids, hex grids, rings, spirals, stars, walls, wedges, paths, phyllotaxis patterns, poisson disk distributions, torus rings, text formations, and more. Then layer runtime behaviours on top: rotation, pulse, phase shift, organic noise, flow noise, swirl vortex, rotating rings, topology shuffle, local cluster splitting, path movement, morphing, follow target movement, and boids-style steering.
The package is designed for projects where groups of objects need to move as readable formations while still feeling alive. It works well for RTS units, tactical squads, spell patterns, boss attack layouts, tower defense waves, crowd-like visualizations, formation previews, and simulation prototypes.
Included features:
- Runtime procedural formation generation.
- 17 included formation types.
- Runtime behaviour stack with ordered execution.
- 15 included behaviour assets.
- Formation morphing and smooth transitions.
- Boids-style group movement with target and leader support.
- Path and waypoint movement with debug gizmos.
- Editor preview support for enabled behaviours.
- Custom inspector tools for formation controllers and waypoint containers.
- Interactive demo scene with formation browser UI.
- Runtime preset save/load workflow for demo presets.
- Formation and behaviour showcase controllers.
- Camera framing, orbit camera controls, and screenshot capture in the demo.
- ScriptableObject-based architecture for reusable formation and behaviour assets.
Included formations:
Arc, Circle, Grid, Hex Grid, Path, Phyllotaxis, Poisson Disk, Radial Spokes, Ring, Spiral, Star, Superformula, Torus Ring, V Shape, Wall, Wedge, Text, and Custom positions.
Included behaviours:
Boids, Flow Noise, Follow Target, Follower, Local Cluster Split, Morph, Organic Noise, Path Following, Phase Shift, Pulse, Rotate, Rotate Rings, Swirl Vortex, Topology Shuffle, and Wave Pulse.
Demo scene:
Assets/DynamicFormationSystem/Demo/Scenes/DFS_Formation_Browser.unity
Requirements:
- Unity 2022.3 LTS or newer.
- Unity Input System.
- TextMeshPro.
Render pipeline:
The runtime system is render-pipeline agnostic. The included demo is designed for the Built-in Render Pipeline and can be adapted to URP/HDRP materials if needed.
Documentation included:
README, Quick Start, API overview, changelog, release checklist, and third-party notices.