
Generate C# enums and constants for Unity scenes, tags, and layers to avoid hard-coded strings and indices.Tired of mistyping scene names, tag strings, or layer numbers? DGConstGenerator streamlines your workflow by scanning your project’s Build Settings, Tag Manager, and Layer Settings, then producing clean, strongly-typed enums (ESceneName, ETagName, ELayerName) and constant classes (SceneNames, TagNames, LayerNames). Everything is fully customizable:Choose where generated scripts live and what they’re called.Save Location & FilenamesEnable automatic regeneration whenever your scenes, tags, or layers change.Auto-GenerateWrap your generated code in a namespace matching your folder structure for clear organization.Namespace SupportIdeal for any Unity project—2D, 3D, mobile or PC—DGConstGenerator guarantees zero reliance on magic strings or hard-coded indices, reducing runtime errors and speeding up development.Converts each entry in Build Settings ▶ Scenes in Build into a C# enum.Scene Enum GenerationScans Edit ▶ Project Settings ▶ Tags & Layers and generates matching enums.Tag & Layer EnumsProduces public const string and public const int wrappers for direct use in CompareTag, LayerMask, and other APIs.Constant ClassesConfigurable save folder, file names, and optional namespace injection.Customizable OutputHooks into UnityEditor events to regenerate on scene, tag, or layer changes.Automatic DetectionPlace DLL or scripts under Assets/Editor for editor tools, or Assets/Plugins for runtime use.Editor-Only or Runtime