Enum Generator
Tool for generating c# enums based on json input files.
com.bastianblokland.enumgenerator 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/enumgenerator.git README Markdown
Copy this to your project's README.md
## Installation
Add **Enum Generator** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/enumgenerator.git
```
[](https://www.pkglnk.dev/pkg/enumgenerator)README
EnumGenerator-Unity
Unity package tool for generating c# / f# / vb / cil enums based on json input files.
Description
If you have config in json files it can be nice to have a enum to reference in the code instead of having to hard code values, this tool allows you to generate that enum.
Installation
Add a reference to this repository to your package dependencies (
Packages/manifest.json)"dependencies": { "com.bastianblokland.enumgenerator": "https://github.com/BastianBlokland/enum-generator-unity.git#v1.6.1", ... }Add the NuGet dependency to your project.
If your project uses a NuGet package manager you can simply add a dependency to EnumGenerator.Core version
4.1.*.If you are not using a NuGet package manager you can simply copy the dll's from the
.libdirectory to your project.
Usage
- Create a
Generatorscriptable-object. (Right mouse the project window ->Create/EnumGenerator/Generator) - In the
Json Filefield of the generator configure the file to base your enum on. - Configure the jPaths to point to the right fields in your json. (More info: readme)
- In the
Output Pathfield of the generator configure where to output the enum to. (Relative to theAssetsdirectory)
Example
An example of how to integrate this package with a unity project can be found in the .example directory.
Help
More information: enum-generator-dotnet
No comments yet. Be the first!