Named Enum
Safer alternative to raw enums when used as serialized fields in Unity, maintains the right values after reordering, resistant to code merges.
com.gilzoide.namedenum Unity Compatibility
Unity 6 Not tested
2023.2 Not tested
2023.1 Not tested
2022.3 LTS Not tested
2021.3 LTS Not tested
2020.3 LTS Not tested
2019.4 LTS Not tested
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/namedenum.git 
README Markdown
Copy this to your project's README.md
## Installation
Add **Named Enum** 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/namedenum.git
```
[](https://www.pkglnk.dev/pkg/namedenum)README
Named Enum
An alternative to raw enums for Unity that serializes the enum name along with its numeric value.
This makes it possible to reorder enums without breaking existing Unity assets, including adding new values between existing ones. Thus they are resistant to code merges where both branches add new values to the enum.
Installing the package
Install using Unity Package Manager adding a package using this git repository URL:
https://github.com/gilzoide/NamedEnum.git
Similar projects
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In