Player Settings
How to work with player settings.
PlayerSettings
is essentially a SaveState that is meant to save data that should be persistent across all save states, such as a player's preferred game settings.
You can manage data in PlayerSettings
the same way as you can with save states. The difference is that you don't need to call ESave.Save
on it to confirm the changes, which means that the changes made are confirmed automatically.
Creating Player Settings
Player settings is automatically created upon initializing ESave for the first time.
Getting Player Settings
You can get the player's settings with the ESave.GetPlayerSettings
method.
PlayerSettings myPlayerSettings = ESave.GetPlayerSettings();
Managing Data
Data inside PlayerSettings
can be managed the same way as SaveState
's. See Saving & Loading. Remember, you don't need to call ESave.Save
to confirm the changes.
Last updated