# LoadFromPlayerPrefs(string)

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

## 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 |             |
