Page 1 of 1

Saving and Loading a Variable with PlayMaker

Posted: Thu Aug 02, 2018 8:19 pm
by Joel
This example shows the basic usage of Easy Save's Save and Load actions for PlayMaker.

It uses the Save action to save a string variable, changes that variable to an empty string, and then reloads the original value using the Load action.

States are commented to describe what is happening.

Note:
  • Easy Save and PlayMaker should be installed in your project before importing this example. The example is located in Assets/Easy Save 3/Examples/.
  • All examples are only provided as an educational sample, and may need modification for your purposes. They are provided without warranty.

Re: Saving and Loading a Variable with PlayMaker

Posted: Sun Jan 13, 2019 3:57 pm
by Diablo3496
Hello I somehow do not understand the asset easy save I would like to save the volume of my background music.

so that the player can adjust the volume but I only get error hm I think I'm too stupid you could vllt make a tutorial would be great

Re: Saving and Loading a Variable with PlayMaker

Posted: Sun Jan 13, 2019 4:01 pm
by Joel
Hi there,

Please could you let me know what error you are receiving, and attach screenshots the FSM and actions you are using?

You should simply use the Save action to save the volume. I assume that your volume is represented by an int or float, so you should set the type field of the action to the correct type you are saving.

Then to load, simply use the Load action (with the corresponding type), using the same key as you used in the Save action.

All the best,
Joel