Skip to content

C# class with nodes / node delegates and a Unity editor that serializes all of that

License

Notifications You must be signed in to change notification settings

00mjk/finite-graph-machine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

finite-graph-machine

My attempt at building a finite state machine in Unity3D, inspired by the Animator. Not 100% feature complete.

Editor Screenshot

I stopped working on it because even though making logical state machines with the animator is full of landmines and potential problems, the animator gives you 90% of functionality that you need without the context switching cost of having two similar, yet different systems.

Demo scene is included.

Features

  • Complete separation of logic and editor
  • Full test-suite
  • Nodes, Transitions
  • Supports multiple active nodes

Planned Advantages Over Animator

  • Better node querying system (ex. GetComponentsInChildren() equivalent for sub-state machines)
  • No animation concepts as point of failures (ex. Transition Duration)
  • Instantaneous transitions

Dependencies

  • Must import Unity Test Tools from the asset store into your project

About

C# class with nodes / node delegates and a Unity editor that serializes all of that

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%