Unity Package Manager
Install Nox assets in Unity through the node's UPM registry.
Every asset published on this node is also a UPM package, so a Unity project installs it the same way as any other package — no manual bundle download.
Package names
| Asset type | Package name |
|---|---|
mod | nox.mods.<slug> |
world | nox.worlds.<slug> |
avatar | nox.avatars.<slug> |
The second segment is the asset endpoint (the REST route: mods, worlds, avatars), not
the singular kind. <slug> is the asset name, or id<id> when the asset has none, so an asset
named nox.network is published as nox.mods.nox.network.
Registry URL
The registry lives on /upm, like the API lives on /api, so its URL is the same on every node:
https://<host>/upmThat is the base to give to Unity: the client appends the npm protocol paths itself
(<base>/-/v1/search, <base>/-/all, <base>/<pkg>). Keep it without a trailing slash —
https://<host>/upm/ would produce <base>//-/v1/search, which the node answers with a 404.
Both ends of the chain publish the exact package URL, so nothing has to be derived by hand.
On the asset payload, in alias (key upm):
"alias": [
{ "key": "github", "value": "https://github.com/AtelierVR/nox.network" },
{ "key": "api", "value": "https://nox.hactazia.fr/api/mods/14" },
{ "key": "upm", "value": "https://nox.hactazia.fr/upm/nox.mods.nox.network" }
]On the discovery document, in endpoints.upm:
"endpoints": {
"upm": "https://nox.hactazia.fr/upm/"
}The registry speaks the npm protocol Unity expects:
| Route | Answer |
|---|---|
GET /upm/-/all | Every package this node publishes. |
GET /upm/-/v1/search?text=&from=&size= | Search the same catalogue. |
GET /upm/<pkg> | Packument: every version of one package. |
GET /upm/<pkg>/-/<pkg>-<version>.tgz | The generated package tarball. |
GET /upm/-/ping | Liveness probe. |
Add the registry to Unity
Edit → Project Settings → Package Manager, then add a scoped registry:
| Field | Value |
|---|---|
| Name | Nox |
| URL | https://nox.hactazia.fr/upm |
| Scope(s) | nox |
The same configuration written directly in Packages/manifest.json:
{
"scopedRegistries": [
{
"name": "Nox",
"url": "https://nox.hactazia.fr/upm",
"scopes": ["nox"]
}
],
"dependencies": {
"nox.mods.nox.network": "1.0.0"
}
}Install a package
- Package Manager → My Registries, pick the package and click Install.
- Or + → Add package by name… and paste a package name, e.g.
nox.mods.nox.network. - Or pin it in
Packages/manifest.jsonunderdependencies(see above).
Package details
A mirrored GitHub asset carries the links Unity shows in the details pane, so they are published in
package.json instead of being guessed:
| Field | Value |
|---|---|
description | The repository README, which is what the details pane displays. |
documentationUrl | <repo>/blob/<branch>/docs/index.md when the repository has one, otherwise the README. Omitted when the repository has neither. |
changelogUrl | The release page of the version — the release message. |
licensesUrl | <repo>/blob/<branch>/LICENSE |
The release message is also the CHANGELOG.md shipped inside the tarball, which is what Unity's
Changelog tab reads. An asset uploaded directly has no repository: description is then its own
summary and the three links are omitted.
Versions
The version comes from the asset release:
metadata.upm.versionwhen it is a strict semver;- otherwise the release
namewhen it already is a strict semver; - otherwise
0.0.<release id>.
A -rc.<id> / -nightly.<id> suffix is added for releases of the matching channel, so a stable
and a nightly build of the same asset coexist in one package. A release with no completed file is
never exposed: Unity would install a package that fails to load.
The package is a reference package: it carries the manifest and a runtime helper, not the
asset bundle bytes. NoxModManifest.BundleUrl(platform) returns the download URL to feed to your
loader (cache it in Application.persistentDataPath, then AssetBundle.LoadFromFile).
The catalogue (/-/all, search) only lists this node's assets. Packages of an upstream
registry it mirrors stay installable by name — a manifest dependency still resolves — but they
are never listed here.