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);
Code: Select all
FsmVariables f = obj.GetComponent<FsmVariables>();
(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.