# Save System

To show Save Load Manager Inspector window:

* Load Main Menu Scene -> Select Save Load Manager Gameobject.

<figure><img src="/files/cBu952ycYsGe0N4AqtU2" alt="" width="563"><figcaption></figcaption></figure>

| Field Name        | Description                                                    |
| ----------------- | -------------------------------------------------------------- |
| File Name         | Input file name saved on device ( Default name is GameData ).  |
| Is Use Encryption | Enable this option to make it harder for players to hack data. |
| Is Use Save Cloud | Enable this option for save load game data with Playfab.       |

{% hint style="info" %}
To use save cloud option, you need to create a PlayFab account. Please check this [page](/2d-racing-multiplayer-game-template/customization/playfab.md).
{% endhint %}

### 🔷 Save And Load New Variable

* To save and load new variable, such as gems, first open the GameData script.

<figure><img src="/files/ISyyDnWeIGLPCsw6DjE2" alt="" width="563"><figcaption></figcaption></figure>

* Add two lines code like the below picture:

<figure><img src="/files/GxPRVwAxYlLoUwUF6fh6" alt="" width="563"><figcaption></figcaption></figure>

* Implement ISaveLoadGame to Class name you want.

<figure><img src="/files/w71zGCOYmbkUQnUZLLzO" alt="" width="563"><figcaption></figcaption></figure>

* Add two functions save and load to the name class implemented ISaveLoadGame interface.

<figure><img src="/files/j6cC1unP38H3gdlyjBia" alt="" width="492"><figcaption></figcaption></figure>

* Now you can save and load gems variable in the game.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://black-knight.gitbook.io/2d-racing-multiplayer-game-template/customization/save-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
