Saving a playmaker FSM component

Easy Save 2 has been replaced by Easy Save 3, so is no longer supported.
Locked
Sanguinius
Posts: 2
Joined: Sun Aug 28, 2016 4:44 am

Saving a playmaker FSM component

Post by Sanguinius »

I know you can use the "save all" method within playmaker to save all the FSM variables, but are you able to manually save the entire FSM component using a script?

I'm attempting to save both the transform and the FSM component. The transform is easy to save, but I don't know how to properly grab the FSM.
You usually do something like:

Code: Select all

Transform t = obj.GetComponent<Transform>();
ES2.Save(t, file+"?tag=transform");
ES2.Load<Transform>(file+"?tag=transform", t);
But how can you get that objects FSM? I was thinking something like:

Code: Select all

FsmVariables f = obj.GetComponent<FsmVariables>();
But I haven't made much progress with it.
(Just to be a bit more clear i'm trying to save this with all the variables set inside http://prntscr.com/dt88s5)

Thank you.
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Saving a playmaker FSM component

Post by Joel »

Hi there,

Unfortunately this is not a question we can answer as it depends on how they've implemented the class at their end. You're best off asking this on the Playmaker forums as they should have information on what fields need to be serialised to persist their classes.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Sanguinius
Posts: 2
Joined: Sun Aug 28, 2016 4:44 am

Re: Saving a playmaker FSM component

Post by Sanguinius »

Alright thank you.
Locked