com.elestrago.unity.package-tools
v2.5.2
Published
Tool for create unity packages
Readme
Package Tool
Tool for create unity packages
Requirements
- Unity 2021.3 or newer.
Playdarium.PackageTool.Editor— runs on Editor only.
Dependencies
| Package | Version |
|---------|---------|
| com.unity.nuget.newtonsoft-json | 3.2.1 |
Installation
Add the package to Packages/manifest.json:
{
"scopedRegistries": [
{
"name": "Playdarium",
"url": "https://npm.playdarium.studio",
"scopes": [
"com.elestrago"
]
}
],
"dependencies": {
"com.elestrago.unity.package-tools": "2.5.2"
}
}Replace the registry URL above with your scoped registry, or remove the scopedRegistries block when consuming a published package.
Getting Started
- Create a
PackageManifestConfigasset via Assets > Create > JCMG/PackageTools/PackageManifestConfig. - Fill in
packageName,displayName,packageVersion,unityVersion,sourcePath(the folder underAssets/that holds your package's source), andpackageDestinationPath(where the assembled package will be written, e.g.Release). - Optionally add
dependencies,samples, andcopyEntriesrows in the inspector. - Click Export Package Source to assemble the package; Export as Legacy Package to emit a
.unitypackage; or Generate VersionConstants.cs to write a versions file atversionConstantsPath.
For CI, invoke PackageTool.CIUtils.Generate in batch mode and pass version=<semver> to override the asset's version on a per-run basis:
// Unity batch-mode CLI:
// unity -batchmode -quit -projectPath . \
// -executeMethod PackageTool.CIUtils.Generate \
// version=1.2.3 generateversionconstants=true
using PackageTool;
CIUtils.Generate();Documentation
- Manual — concepts and architecture.
- API Reference — every public type and member.
- Examples — short usage examples for the public API.
License
See LICENSE.
