StateFlow documentation

What StateFlow is, what it does and where to begin.

StateFlow Editor — PuzzleGame
The StateFlow editor showing a complete puzzle game front end: screens, popups and alerts connected by transitions, a Gameplay sub-state, a linked Shop machine and an 'Always on' group of global triggers.
A complete game front end on one canvas.

StateFlow is a visual state machine for Unity UI. Every screen, popup, dialog and alert in your game is a state. Each way out of a state is a trigger: an event in its script that appears as a port on its node. You draw the flow between them in the StateFlow Editor, and a StateFlowManager in your scene runs it.

The flow lives in a graph, not in your scripts. A screen never names the screen that comes next, so you can rewire the game without touching code. And because triggers and payloads are typed, a broken connection shows up in the editor instead of at runtime.

Start here

Core concepts

Building flows

Project setup

Requirements