# SaveToPlayerPrefs()

Method in [InMemoryVariableStorage](https://docs.yarnspinner.dev/2.0/api/csharp/yarn.unity/yarn.unity.inmemoryvariablestorage)

## Summary

Serialize all variables to JSON, then save data to Unity's built-in PlayerPrefs with default playerPrefsKey.

```csharp
public void SaveToPlayerPrefs()
```
