Call PlayerPrefs

Sandberg 3 years ago updated by Eduard_de_Bruyn 2 years ago 2

I have a script that I use for testing where the PlayerPrefs are deleted/reset every time the game ends. However, I would like to do the same in my existing graphs. How do I refer to PlayerPrefs within Bolt?

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):
Satisfaction mark by Sandberg 3 years ago

Hi Sandberg!

You just have to add PlayerPrefs to your custom type options in Tools > Bolt > Unit Options Wizard, then regenerate your database. You'll see all PlayerPrefs nodes appear in your graph options after!

Hi Lazlo,

I am also needing to use PlayerPrefs to remove the variables saved by Bolt, however using DeleteKey > Key Value or DeleteAll does not remove the variables saved by Bolt.

How would I be able to do this?