How to Use
This guide provides a high-level overview of the different ways you can leverage pckgs.io for your Unity projects. For detailed instructions on each step, please refer to the linked dedicated documentation pages.
Consume Packages
To begin using pckgs.io, first add our scoped registry to your Unity project.
See our guide: Add pckgs.io to Unity.
Once set up, you can install packages either manually or directly from the Unity Package Manager Window.
Manual Installation
To install a package manually, open your project’s manifest.json file and add package name and version under the dependencies section.
Example
"scopedRegistries": [
{
"name": "pckgs.io",
"url": "https://upm.pckgs.io",
"scopes": [
"com.my-company"
]
}
],
"dependencies": {
"com.my-company.package-name": "1.0.0"
} For private packages, make sure you have set up an access token on your device. See the detailed guide here.
Publish Packages
Create a pckgs.io Account
To manage your packages, you’ll need a user account first. You can create an account here.For more information, check our Create an Account guide.
Create an Organization
pckgs.io is organization-based — every package must belong to an organization rather than a personal account. You can create an organization here.For more details, see our Create an Organization guide.
Create a Package
If you haven’t created your Unity package yet, refer to our Create a Package guide if needed.Upload Your Package
Once your package is ready, navigate to organization you want to upload package. In packages section click Upload Package. On the page select the package folder (the folder contains your package’s package.json file) to upload.For detailed instructions, see our Upload a Package guide.
You can also upload packages using our upload-package GitHub Action. For setup instructions, see Upload Packages with GitHub Actions.
See Also
- Add pckgs.io to Unity — Step-by-step guide for adding pckgs.io scoped registry to unity project.