Uber Enums

Unity Enum generation tool

How to Install

Add to your project manifiest by path [%UnityProject%]/Packages/manifiest.json new Scope:

{
  "dependencies": {
    "com.unigame.uberenum" : "https://github.com/UnioGame/UberEnums.git",
    "com.annulusgames.unity-codegen": "https://github.com/UnioGame/UnityCodeGen.git?path=/Assets/UnityCodeGen"
  }
}

Overview

Editor View

Generated Enum

Generate Enum from Code

UberEnumApi.CreateAndGenerateEnum(
    $"{nameof(CharacterInfo)}Id", map.value, overwrite: true, 
                isStrictlyOrdered: true, isFlags: false, isReadOnly: true);