playMaker

Author Topic: unity serializer save/load gameObject  (Read 6397 times)

kiriri

  • Hero Member
  • *****
  • Posts: 506
unity serializer save/load gameObject
« on: November 27, 2012, 10:28:55 AM »
A nice feature of the unity serializer by M.J. Talbot (whydoitdoit) is the ability to save and load a single gameObject.
Since it's not part of the default playMaker actions and since I couldn't find any more of them, here they are :)

best,
Sven
Best,
Sven

Zozo2099

  • Playmaker Newbie
  • *
  • Posts: 10
Re: unity serializer save/load gameObject
« Reply #1 on: November 29, 2012, 06:31:34 AM »
Hi, thanks for your effort but I thought there are already Playmaker actions done by whydoitdoit and shipped with Serializer Save Game unitypackage! Did you check it? what is the difference between it and your actions? Thanks again
« Last Edit: November 29, 2012, 06:33:11 AM by Zozo2099 »

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: unity serializer save/load gameObject
« Reply #2 on: November 29, 2012, 07:47:52 AM »
Sure, there are actions packed with the plugin. But they are only :
Quote
Save Checkpoint
Resume from Checkpoint
Check For Resume Data
Save Game
Get number of saved games
Get save game Info
load saved game
delete saved game
set player name

These 2 actions don't save a scene. They save one single gameObject. And they let you load that saved gameObject into any other scene. In effect, it does the same job as saving something to a prefab, only that it works outside of the editor too.

The unity serializer is big, and there are lots of juicy functions. Since I couldn't find additional  actions I thought they could be of use to anyone else wanting to do this too :)
Best,
Sven

michaelwwswr

  • Playmaker Newbie
  • *
  • Posts: 38
Re: unity serializer save/load gameObject
« Reply #3 on: December 01, 2012, 11:36:29 AM »
Hey kiriri  what file format is your actions written I can't open them

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: unity serializer save/load gameObject
« Reply #4 on: December 01, 2012, 11:48:58 AM »
Hey kiriri  what file format is your actions written I can't open them

which editor do you use? This should be an entirely uncompressed text format, just like xml, txt etc.

Even windows wordpad or text editor should be able to open it successfully. Did you make sure the download was completed? Did you redownload it?
Best,
Sven

Khoa1994

  • Playmaker Newbie
  • *
  • Posts: 33
Re: unity serializer save/load gameObject
« Reply #5 on: July 11, 2014, 09:51:34 AM »
Hi Sven,
Do your actions save and load the values of all the PlayMaker global variables?