A set of developer tools to make it easier to create and distribute packages for the native Unity Package Manager.
This PR adds a previously missing field 'Author' which the NPM package export can take advantage of to show the developer's name, email, and the URL for the package's website. It also adds the ability to generate packages (legacy Unity packages and NPM style packages) via the command-line, which can be taken advantage of in a continuous integration (CI) process to create packages in an automated way.
PackageManifestConfig
.VersionConstants.cs
file at desired location and with or without a custom namespace. This is a static class containing versioning and git information about the package and its repository at the time it was created.VersionConstants
generation, excluding files and folders from packages, and an updated screenshot of the PackageManifestConfig inspector
. This can be found on the main github page here.This release adds support for exporting the source contents of a PackageManifestConfig
as a .UnityPackage
file. This makes it easier to be able to create a single file archive that can then be uploaded or sent for a user(s) to import rather than referencing the package in their manifest.json
file.
This can be utilized by selecting the Export as Legacy Package
button on the PackageManifestConfig
inspector.
In addition, this package removes the unit tests from the package source as this can cause errors in newer versions of Unity where NUnit is no longer included with the editor by default and must be included by the user as a package.
There was also some internal refactoring and code cleanup that has no impact on functionality.
This release adds the ability to exclude files and/or folders from the package export process. This is useful where there may be development-only files, examples, or other meta content such as hidden folders or files like you might find in git submodules that you do not want to include in the exported package contents. This new feature can be found in the same location where package contents are currently configured; the inspector for a PackageManifestConfig
asset.
To update this package in an existing project, you can either:
manifest.json
. This will automatically pull the latest package when focus is switched back to the Unity editor or when its next opened.