Skip to content

Commit 0fd5f69

Browse files
authored
Update README.md
1 parent ce3b478 commit 0fd5f69

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
33
## Overview
44
`JsonSaveLoadService` is a flexible and powerful service designed for saving and loading data in Unity applications. It supports various data types including primitives, custom objects, and collections like Dictionary, HashSet, List, Queue, and Stack. This service ensures cross-platform compatibility (PC, Android, Web) and includes functionality for handling default values when loading data for the first time.
55

6+
## Dependencies
7+
This service requires the Newtonsoft.Json library for JSON serialization and deserialization. Specifically, it depends on the Unity package `com.unity.nuget.newtonsoft-json` version `3.2.1`.
8+
9+
## Installing Newtonsoft.Json in Unity
10+
To use `JsonSaveLoadService` in your project, you must first ensure that Newtonsoft.Json is properly installed. Follow these steps to install the Newtonsoft.Json package through Unity's Package Manager:
11+
12+
1. Open your Unity project.
13+
2. Navigate to `Window` > `Package Manager`.
14+
3. Click the `+` button in the top left corner of the Package Manager window.
15+
4. Select `Add package from git URL...`.
16+
5. Enter `com.unity.nuget.newtonsoft-json@3.2.1` and click `Add`.
17+
6. Unity will download and install the Newtonsoft.Json package.
18+
19+
Alternatively, you can manually edit your project's `Packages/manifest.json` file to include the following line in the `dependencies` section:
20+
21+
```json
22+
"com.unity.nuget.newtonsoft-json": "3.2.1"
23+
```
24+
625
## Usage
726

827
### Saving Data

0 commit comments

Comments
 (0)