This is a template repository for creating Unity packages.
- Standard Unity package structure
.editorconfigfor consistent code styling- GitHub workflows for CI/CD (lint, test, release)
- Unity meta files for all assets
- Sample folders structure
- Click "Use this template" to create a new repository
- Update
package.jsonwith your package information:name: Your package name (e.g.,com.yourcompany.packagename)displayName: Display name shown in Unity Package Managerversion: Package version (follow Semantic Versioning)description: Brief description of your packageauthor.name: Your name or organization
- Update this README with your package documentation
- Add your code to the appropriate folders:
Runtime/: Runtime scriptsEditor/: Editor-only scriptsTests/: Unit testsSamples~/: Sample scenes and assets (hidden from Unity)
.
├── Editor/ # Editor scripts
├── Runtime/ # Runtime scripts
├── Tests/ # Tests
├── Samples~/ # Samples (hidden from Unity)
├── .editorconfig # Code style configuration
├── .gitignore # Git ignore rules
├── LICENSE.txt # License file
├── README.md # This file
└── package.json # Package manifest
Install this package via Unity Package Manager:
- Open Package Manager in Unity
- Click
+button - Select "Add package from git URL"
- Enter:
https://github.com/YOUR_USERNAME/YOUR_REPO.git
MIT License - see LICENSE.txt for details