0
Answered

Call PlayerPrefs

Sandberg 2 years ago updated by Eduard_de_Bruyn 9 months 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:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
GOOD, I'M SATISFIED
Satisfaction mark by Sandberg 2 years ago
+2
Answered

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?