How to save/restore a PlayMaker FSM?

I am evaluating PlayMaker for a project and I’ve run headlong into a problem: saving/restoring an FSM. There doesn’t appear to be any support for that, but I just can’t believe it as tons of people are shipping games with it.

I’ll use a simple example: I make a blinking light using playmaker (2 states - On, Off - each with a Wait action on it). When I save the game state, the light is either in On or Off state and there is X seconds left on the Wait action to switch to the other state. How do I restore so that after loading it:

  • the proper state is active, whether it was On or Off when it was saved
  • the Wait action has the same amount of time left to wait for (as an example: 0.25s out of a 1s timer)

You need to save the variables (not the states or FSM). To do so, use something like easy save, which is available on the asset store. If that is not for you, you can code a custom solution using playerprefs.

it save in the app memory? if i close the app it will continue save?