-
Notifications
You must be signed in to change notification settings - Fork 131
Installation via UPM
Unity Package Manager, or UPM for short, is Unity's new solution for managing packages so they don't need to be included inside the /Assets folder.
Have a look at the Unity Package Manager docs for more info.
Like many other similar systems (such as NPM, NuGet, Maven), you only reference the package name (and optionally from which registry to find it). The benefit of this is that you can safely push your list of package references to your version control system of choice (git, mercury, TFS), without having to push the entire list of binaries. Saving a lot of duplicated binaries and annoying updating procedures in the process.
Have a look at the Unity Package Manager docs for more info.
- Requires Unity Editor
2018.1
or above, as UPM was first shipped with2018.1
.
Open <project>/Packages/manifest.json
, add scope for jillejr
, then add the
package in the list of dependencies.
À la:
{
"scopedRegistries": [
{
"name": "Packages from jillejr",
"url": "https://npm.cloudsmith.io/jillejr/newtonsoft-json-for-unity/",
"scopes": ["jillejr"]
}
],
"dependencies": {
"jillejr.newtonsoft.json-for-unity": "12.0.201",
// ...
}
}
// ...
signals the rest of the packages you have in the manifest.json, such as all the "com.unity.*"
dependencies
Open the Package Manager UI Window > Package Manager
Followed by pressing the update button on the jillejr.newtonsoft.json-for-unity
package
(This is an alternative for updating. Following the guide above will suffice if your Package Manager is functional)
Change the version field. You will have to know the new version beforehand. You can find the version here: https://github.com/jilleJr/Newtonsoft.Json-for-Unity/releases
Example, with this as old:
{
"scopedRegistries": [
{
"name": "Packages from jillejr",
"url": "https://npm.cloudsmith.io/jillejr/newtonsoft-json-for-unity/",
"scopes": ["jillejr"]
}
],
"dependencies": {
"jillejr.newtonsoft.json-for-unity": "12.0.101",
// ...
}
}
New, updated:
{
"scopedRegistries": [
{
"name": "Packages from jillejr",
"url": "https://npm.cloudsmith.io/jillejr/newtonsoft-json-for-unity/",
"scopes": ["jillejr"]
}
],
"dependencies": {
"jillejr.newtonsoft.json-for-unity": "12.0.201",
^ change here
// ...
}
}
// ...
signals the rest of the packages you have in the manifest.json, such as all the "com.unity.*"
dependencies
new!
Unity's package is now officially ready for public use: Install official UPM package
This package is licensed under The MIT License (MIT)
Copyright © 2019 Kalle Jillheden (jilleJr)
https://github.com/jilleJr/Newtonsoft.Json
See full copyrights in LICENSE.md inside repository
About- Home
-
Install Newtonsoft.Json
Deprecated:
-
Install converters for Unity