DG Const Generator


Generate C# enums and constants for Unity scenes, tags, and layers to avoid hard-coded strings and indices.


by DragonGate


Price History +

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 & Filenames
  • Enable automatic regeneration whenever your scenes, tags, or layers change.Auto-Generate
  • Wrap your generated code in a namespace matching your folder structure for clear organization.Namespace Support

Ideal 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.