> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.0/api/csharp/yarn.unity/yarn.unity.inmemoryvariablestorage/yarn.unity.inmemoryvariablestorage.loadfromplayerprefs-2.md).

# LoadFromPlayerPrefs(string)

Method in [InMemoryVariableStorage](/2.0/api/csharp/yarn.unity/yarn.unity.inmemoryvariablestorage.md)

## Summary

Load JSON data from Unity's built-in PlayerPrefs with defined playerPrefsKey parameter, and deserialize as variables.

```csharp
public void LoadFromPlayerPrefs(string playerPrefsKey)
```

## Parameters

| Name                    | Description |
| ----------------------- | ----------- |
| `string` playerPrefsKey |             |
