Skip to main content

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

This tool is Python-based. So, you will need to install Python 3 if you don't already have it installed.

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. The directory structure of the package is shown below. Your package will be ready to import and configured for editor scripts, runtime scripts like MonoBehaviours, and UnityTestRunner tests.

<root>
  ├── package.json
  ├── README.md
  ├── CHANGELOG.md
  ├── LICENSE.md  # Defaults to MIT License
  ├── .gitignore  # If --git is used
  ├── 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.

Metadata

Release files for create-unity-package 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for create-unity-package 1.0.4
File Size Uploaded
create_unity_package-1.0.4.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for create-unity-package 1.0.4
File Interpreter ABI Platform
create_unity_package-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 26.1 kB

Release files / create_unity_package-1.0.4.tar.gz

Download URL create_unity_package-1.0.4.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
04134807a1dabe3d4162ba6d83f2439bfae17f09bc7b213b09eb7ab704e1b869
BLAKE2b-256 checksum
How to use checksums
06d9502481ae33b7f9906bb1da519608ea2c34f3928ebcf6829b046eabf80b29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.5

Release files / create_unity_package-1.0.4-py3-none-any.whl

Download URL create_unity_package-1.0.4-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb6bc54f3515e1fa1ded1e8d9bbed947ba5903a7954f14714bef9069cf611018
BLAKE2b-256 checksum
How to use checksums
6781e82d4f17f6ca16cd5f85ff9cb553c5255ab6c199439f5e29c0e23bbe56b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.5

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page