Skip to content

A flexible Hierarchical State Machine system for Unity featuring transition sequencing and asynchronous activities.

License

Notifications You must be signed in to change notification settings

adammyhre/Unity-Hierarchical-StateMachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unity Hierarchical StateMachine

HSM

A flexible Hierarchical State Machine (HSM) system for Unity with support for transition sequencing and asynchronous activities. This framework is designed for game developers who want fine-grained control over state transitions, composable activities, and the ability to structure complex logic in a maintainable way.

Features

  • Hierarchical States: Organize states into parent/child relationships with automatic entry and exit logic.
  • Transition Sequencer: Orchestrates deactivation and activation phases when switching states.
  • Activities: Attach asynchronous tasks to states, such as delays, animations, or effects, that run during entry or exit.
  • Sequential & Parallel Execution: Run activities one-by-one or all at once depending on the transition.
  • Composable API: Easily extend with your own custom activities, transitions, and orchestration logic.

YouTube

HSM Implementation Video

Check out my YouTube channel for more Unity deep-dives.

About

A flexible Hierarchical State Machine system for Unity featuring transition sequencing and asynchronous activities.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages