Redirect to the Docs main page.Docs

Troubleshooting NEW

Missing Newtonsoft.Json Package

Fix missing Newtonsoft.Json package errors when importing the asset.

When importing the asset into an empty Unity project, you may encounter errors related to the Newtonsoft.Json package. This package is required for the Save System to function properly.

Issue Description

Upon opening the project, the console displays multiple errors similar to:

error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)

This occurs because the Newtonsoft.Json package is not included by default in new Unity projects.

Solution: Installing Newtonsoft.Json

To resolve this issue, follow these steps:

  1. Open Unity Package Manager (WindowPackage Manager).
  2. Click + (Add package)Add package by name...
  3. Enter the package name:
com.unity.nuget.newtonsoft-json
3.0.2
  1. Click Add to install the package.

🔗 Official Unity Documentation:
Docs Unity3d - Newtonsoft.Json Package

Confirmation

After installation, the errors should disappear, and the Save System should work correctly. If you still encounter issues, try restarting Unity or recompiling scripts (EditPreferencesRegenerate Project Files).


This troubleshooting guide ensures that users can quickly resolve this common issue when setting up the asset in a new Unity project. 🚀 Let us know if you need modifications!

On this page