Game Development Reference
In-Depth Information
sync =
Convert.ToBoolean(PlayerPrefs.GetInt("Custom_Sync"));
fullscreen =
Convert.ToBoolean(PlayerPrefs.GetInt("Custom_Full"));
res = PlayerPrefs.GetInt("Custom_Resolution");
settings =
PlayerPrefs.GetString("Custom_Settings");
audiotype =
PlayerPrefs.GetString("audioType");
}
For each of the placeholder variables that we created, we load the saved data for it.
To get the saved data, we use the PlayerPrefs get functionality to load the values.
Search WWH ::




Custom Search