playMaker

Author Topic: Several questions about PM  (Read 2062 times)

Makumba666

  • Playmaker Newbie
  • *
  • Posts: 2
Several questions about PM
« on: July 22, 2012, 04:35:03 AM »
Hi all,
I have two very basic questions:
1. Does FSM exist between scenes? Thats to say, is it possible to transfer variables between different scenes? I do not mean creation of some empty game object, declaring it as persistent and applying FSM to it. Nor I mean loading level and then load additively another one and have gigabytes of memory used. Just simple question - does FSM exist between scenes?
2. Is there any channel (I think that is what you call them) that can help to serialize game data? Or is Playmaker compatible with third party serialization/deserialization solutions?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3998
  • Official Playmaker Support
    • LinkedIn
Re: Several questions about PM
« Reply #1 on: July 22, 2012, 02:45:58 PM »
1. Playmaker has Global Variables that are persistent across levels. If you need an FSM to be persistent, you can use Don't Destroy On Load to keep it around. Or you could save/load its state (see 2 below).

2. Playmaker supports Unity's PlayerPrefs system to serialize game data:
https://hutonggames.fogbugz.com/default.asp?W545

There are also some third party libraries with Playmaker support. E.g., UnitySerializer:
http://forum.unity3d.com/threads/138678-Unity-Save-Game-Level-Serialization