Skip to content

NonatomicTeam/AssemblyTemplate

Repository files navigation

Installation

In order to install this package via Unitys Package Manager select "Add package from git URL" and enter https://github.com/NonatomicTeam/AssemblyTemplate.git?path=Packages/com.nonatomic.assembly-template

Project Background

This started out as a little project to simplify and speed up the process of creating a new assembly within the Unity Editor as they follow as pretty consistent pattern.

To achieve this I built a simple process of digesting json files to produce file structures in Unity. This process it seems has further application in the generation of any commonly used file structure like that of creating new packages, so I've expanded the project to automate the generation of a new packages file structure and required files.

Assembly Template

To create a new assembly right click in the project window and select Create > Assembly Structure.

aLDUPw13gG

Complete the form in the Assembly Template window and select Generate to create a new folder within the selected directory named and populated with the details you enter in the Assembly Template window.

Unity_1V9hVQNZR3

The produced file structure is inclusive of all the typical files you would expect to see in a new assembly including all assembly definition files.

Should you wish to customise this file structure you can do so by duplicating the BasicAssemblyTemplate.json file and editing it to your liking. You can then set the Template Path field of the Assembly Template window to point to your new json template.

Package Template

To create a new package right click in the project window and select Create > New Package.

Unity_1Fp6aI0jh4

Complete the form in the Package Template window and select Generate to create a new package within the packages directory named and populated with the details you enter in the Package Template window.

Unity_d8S6UpjXF5

Should you wish to customise this file structure you can do so by duplicating the NewPackageTemplate.json file and editing it to your liking. You can then set the Template Path field of the Package Template window to point to your new json template. manifest.jsonmanifest.json

About

Creates a stub for a new assembly from a template

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages