# Save()

> Saves all modified preferences.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static void Save()
```

### Remarks

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](/engine/6000.7/script-reference/unityengine/playerprefs.md).

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