This package adds support for resolving packages hosted on OpenUPM as package dependencies. Inspired by mob-sakai's Git Dependency Resolver For Unity.
- Install OpenUPM CLI if you have not already
- Install this package (see 🪛 Installation)
{
...
"openUpmDependencies": {
"your.package": "1.0.0",
...
}
}
- You must use
openUpmDependencies
instead ofdependencies
to define OpenUPM-based dependencies for the package. - Package users must install
com.nmacadam.openupm-dependency-resolver
. - Optionally specify a which package version to retrieve from OpenUPM
- You may use the version string
default
to download the latest version (though this is not recommended)
- You may use the version string
Install OpenUPM CLI if you have not already.
Install with OpenUPM via CLI or scoped registry (recommended)
✨ To add a package via openupm-cli, run the following command:
openupm install com.nmacadam.openupm-dependency-resolver
🗃️ To add a package via scoped registry:
- Open
Edit/Project Settings/Package Manager
- Add a new Scoped Registry:
Name: OpenUPM URL: https://package.openupm.com/ Scope(s): com.nmacadam
- Open
Window/Package Manager
- Click +
- Add from Git URL
com.nmacadam.openupm-dependency-resolver
Add
Install with Git URL
- Open
Window/Package Manager
- Click +
- Add from Git URL
https://github.com/nmacadam/com.nmacadam.openupm-dependency-resolver.git
Add
Note that you won't be able to receive updates through Package Manager this way, you'll have to update manually.
Install manually
- Download the upm branch of this repository as a .zip file and extract it
- Open
Window/Package Manager
- Click +
- Add package from disk
- Select
package.json
in the extracted folder
Note that you won't be able to receive updates through Package Manager this way, you'll have to update manually.