CLI tool for generating boilerplate Unity packages
Project description
Create Unity Package
This is a simple command line tool that automates the creation of Unity packages. It creates the boilerplate package structure and inserts user-specific information. This package is inspired by other developer CLI tools such as CreateReactApp.
This application follows the instructions offered by Unity. It creates new local packages in the directory that the application is run.
Please file any issues for bugs or desired features. Good luck with your development!
Usage
How to install
Option #1: Install from Pip: pip install create_unity_package
Option #2: Install from GitHub: pip install git+https://github.com/ShiJbey/create_unity_package.git
How to create a new Unity Package
Run the following command in a terminal and answer the prompts: create-unity-package
By default, this creates a new folder with the unique package
name entered during the prompts. If you would like to name the
folder differently, you can change the folder name afterward or
use the --output
argument when generating the package. For more
help use the --help
.
create-unity-package --output <YourPackageName>
In your current working directory it will create a new package directory with the name of your package and the following structure.
<root>
├── package.json
├── README.md
├── CHANGELOG.md
├── LICENSE.md # Defaults to MIT License
├── Third Party Notices.md
├── Editor
│ ├── [company-name].[package-name].Editor.asmdef
├── Runtime
│ ├── [company-name].[package-name].asmdef
├── Tests
│ ├── Editor
│ │ ├── [company-name].[package-name].Editor.Tests.asmdef
│ └── Runtime
│ ├── [company-name].[package-name].Tests.asmdef
├── Samples~
│ └── [empty]
└── Documentation~
└── [package-name].md
How to import and edit package in Unity
Unity has detailed instructions for developing a local package. You can instructions for installing a local package here.
Now you should see the your package name in the Packages
directory
in Unity's file explorer.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for create_unity_package-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdb94e3da47f72c12a5a1777c3400123f85ea0fbe0a5a10fb6e90415a23b7cd0 |
|
MD5 | 8695deaa54cad565e6c99cb8ddecbc90 |
|
BLAKE2b-256 | 179a2f3222f4d133cad96fc0e7489175d4afb857b85b0d620fb208c3d48fef58 |
Hashes for create_unity_package-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6858d775383e8bb87a4d3b0d47a2536dbae2f2260cda2867ff254e51e5eca70 |
|
MD5 | 5a6aedba8f2ab5df5b133031574d343a |
|
BLAKE2b-256 | dea4289731690a106e62d18a60463ca1d8643c18c858335f5d6e98d697d3348d |