× Phaseshift FCOM Tutorials

Editing Save Data via Windows Registry


Learn how to edit the save data of a built Unity game on Windows using PlayerPrefs

There maybe times where you have built your game and need to reset certain aspects of the save data associated. This tutorial assumes you are using PlayerPrefs to store player data.


Step 1: Open Registry Editor


On Windows, in the search bar type 'regedit' then enter. A prompt will show asking if you wanted to open up the Registry Editor. Click yes. Registry Editor should now open.


Step 2: Find your game


On the left hand side of the Registry Editor is a folder hierarchy, find HKEY_CURRENT_USER -> Software -> [YOUR_GAME_STUDIO] -> [GAME_NAME] then double click. This will open all registry items for that piece of software (i.e, your game)


Step 3: Find the save data file


This part can be tricky, try and find the save data you have stored. The name should loosely resemble the object or class you saved the PlayerPrefs under. (If not, just click around until you find some data that resembles the attributes you expect.) 


Step 4: Edit the file data


Opening the data will show some Hex values as well as a string value to the side that the hex values represent. Simply find the data you want to edit, then click 'Ok'.

Documentation


To explore more on these topics, check out the documentation:

PlayerPrefs

Liked this article?

Please consider sharing!
Author

Josh Lyell

Game Developer