Version: 2023.2
public static void Save ();

描述

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.