PlayMaker Help & Tips > PlayMaker Help

Several questions about PM

(1/1)

Makumba666:
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:
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

Navigation

[0] Message Index

Go to full version