Dev's NoxDev's Nox
Assets

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 typePackage name
modnox.mods.<slug>
worldnox.worlds.<slug>
avatarnox.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>/upm

That 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):

GET /api/mods/nox.network
"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:

GET /.well-known/nox
"endpoints": {
  "upm": "https://nox.hactazia.fr/upm/"
}

The registry speaks the npm protocol Unity expects:

RouteAnswer
GET /upm/-/allEvery 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>.tgzThe generated package tarball.
GET /upm/-/pingLiveness probe.

Add the registry to Unity

Edit → Project Settings → Package Manager, then add a scoped registry:

FieldValue
NameNox
URLhttps://nox.hactazia.fr/upm
Scope(s)nox

The same configuration written directly in Packages/manifest.json:

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.json under dependencies (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:

FieldValue
descriptionThe 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.
changelogUrlThe 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:

  1. metadata.upm.version when it is a strict semver;
  2. otherwise the release name when it already is a strict semver;
  3. 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.

On this page