Adding custom packages

Hey,

We’re hosting a few of our packages on a git repository, these change very rarely. Currently it is pretty annoying trying to find the repo url and the correct branch to add to the project. Since these urls and branches are known before hand it should be possible to add them to the package manager as pre existing packages. This would mean that you don’t have to add them by url manually but can just press install to install the latest version of the branch.

Is this currently possible? If not are there plans to support this?

1 Like

Greetings!

It’s not currently possible and there are no plans to add them to the Package Manager as “known packages”. This is a feature request that will not be implemented.

To do what you need to do, you should instead use scoped registries. Unity - Manual: Scoped registries

This would allow you to list your packages directly in the Packages window and let you manage versions right there, in addition to handling dependencies between your packages, should you have custom packages that depend on other custom packages.

Hey @UnityMaru ,

Thanks for your response.
Scoped repositories only allow for NPM servers to provide packages, I’m looking for a way to add git packages instead.