Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Thanks for the advice🙀!!
I've actually never touched player prefs, saving game data just scares me for some reason. I'll have to do it at some point though, better sooner than later.

PlayerPrefs is absolutely easy. Just call PlayerPrefs.SetString(“key”, YourSaveData); PlayerPrefs.Save(); and then load by PlayerPrefs.GetString(“key”);. However, note that PlayerPrefs on Windows goes into Windows registry, so not a very good idea overall :) - it’s much better (but slightly harder) to make a custom save system with file saved in Application.persistentDataPath and file written/read by System.IO.File.WriteAllText/System.IO.File.ReadAllText. There’s of course some hassle to “serialize” the save state (and game settings) into a string - but this is a different topic :)