An open API service indexing awesome lists of open source software.

https://github.com/gilzoide/namedenum

Safer alternative to raw enums when used as serialized fields in Unity, maintains the right values after reordering, resistant to code merges
https://github.com/gilzoide/namedenum

enum serializable unity

Last synced: about 2 months ago
JSON representation

Safer alternative to raw enums when used as serialized fields in Unity, maintains the right values after reordering, resistant to code merges

Awesome Lists containing this project

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](https://docs.unity3d.com/Manual/Packages.html)
adding a package [using this git repository URL](https://docs.unity3d.com/Manual/upm-ui-giturl.html):

https://github.com/gilzoide/NamedEnum.git

## Similar projects
- https://github.com/dotsquid/StableEnum