Finite State Machine

MorphVGX

(2)
$4
Publisher MorphVGX
File size 833.86kB
Number of files 14
Latest version 1
Latest release date 2016-08-29 05:27:24
First release date 2015-12-04 09:01:19
Supported Unity versions 2018.4.2 or higher
An instance of this class creates a finite state machine that manages triggers, callbacks and debugging messages.

By using states and events a matrix is created internally, so certain events change a state to another.

Methods can be set to be called when a state starts, while it is running and when the state goes away.

The fsm can be given a name and debug messages will use it. The fsm can be set to print messages when an event is handled and when an event changes the current state.

A callback can be passed to the fsm and it will be called when the state changes, returning the new state key.

This is not a monobehaviour so cannot be attached to Game Objects. But it can be used inside any C# code.

Demo Video

Tutorial Videos

Web Demo

Support E-mail



Artificial Intelligence graphic by Freepik from Flaticon is licensed under CC BY 3.0. Made with Logo Maker.