PlayerPrefs.Save

Declaration

public static void Save();

Description

Saves all modified preferences.

Unity saves preferences automatically during OnApplicationQuit(). On the Universal Windows Platform, Unity writes preferences during application suspend. For information on the storage location, see PlayerPrefs.

Note: Since writing the PlayerPrefs can cause hiccups, it is recommended to not call this function during gameplay.


Did you find this page useful? Please give it a rating: