#Where should I save game data?

1 messages · Page 1 of 1 (latest)

exotic pendant
#

Where should I save my save files? How do I get the file path for the location?

lost marsh
somber mantle
#

AppData or the gane directory itself would probably be the best options.
And whatever you do, don't save game files in Documents.

spark beacon
#

Depends on what type of data you want to save. A really simple way for simple types of data (strings, integers, booleans) is by using PlayerPrefs.

slow notch
#

%AppData% for user-specific machine-agnostic data (for game progression, player profiles etc. data that applies to the user, and can apply to any machine)

%LocalAppData% for user-specific machine-specific data (settings such as screen resolution or volume. applies to the user but only on this machine)

%ProgramFiles% for application-specific machine-specific data (the actual game files go here. the exe, any libraries required for running it etc.)

%ProgramData% for user-agnostic machine-specific data (log files, caches, stuff like that)