thefuntastic/Unity3d-Finite-State-Machine
An intuitive Unity3d finite state machine (FSM). Designed with an emphasis on usability, without sacrificing utility. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5266
- days_rel: n/a
- days_push: 1800
- n_releases_24m: 0
Adoption not part of the score
1691 stars · 237 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A lightweight, intuitive finite state machine (FSM) library for Unity written in C#. It lets developers define states as enums and implement state behavior via underscore-convention methods inside MonoBehaviours, with reflection-based wiring and zero garbage allocation after initialization.
Use cases
- manage game state like game over, restart, and continue in Unity
- implement NPC and enemy AI behaviour states
- handle UI button states such as hover and press
- drive animation state transitions for game actors
- replace boilerplate-heavy C# state machine implementations with a simple enum-driven API
- build state machines that work on iOS, Android, and IL2CPP builds
When to choose
- you are building a Unity game and need a simple, low-overhead FSM
- you want state logic colocated inside your MonoBehaviour with minimal boilerplate
- you need a battle-tested library that ships in production and supports mobile/IL2CPP
- you prefer convention-based state methods over verbose configuration
When to avoid
- you need a general-purpose C# state machine outside of Unity
- you require hierarchical or pushdown state machines with advanced transition graphs
- you need hierarchical state machines or async/await-driven state flows
- your project no longer targets Unity 2019.4-era APIs and the unmaintained library breaks
Facets
library · maturity maintenance
game-engine concurrency developer-tools gaming-tools cross-platform game-engine cross-platform unity finite-state-machine fsm csharp monobehaviour game-ai state-management game-development mobile desktop
1 source
- readme: https://github.com/thefuntastic/Unity3d-Finite-State-Machine · fetched 2026-08-28 · 85730903a560
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| thefuntastic/Unity3d-Finite-State-Machine | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="thefuntastic/Unity3d-Finite-State-Machine")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem