C# Unity ECS Schema Code Generator

Generate Unity ECS-friendly C# code with live preview. Edit fields directly in the table, import from C# struct, and dump as code.

Current Fields (Editable)

Current Fields

Schema Configuration

Basic Information

Generation Options

Add Field

Field Type

Export

Paste a C# data struct to populate the UI/table, or dump the current schema as code.

Generated Code

Tips

  • Edit fields directly in the table; preview updates live.
  • Fields ending with 'Id' auto-mark as references and set Ref Type (toggle above to disable).
  • Toggle IHasID to auto add/remove the 'id' field.
  • Blob arrays:
    • For value types: use the base type (e.g., ushort) and check Blob Array.
    • For references: check both Blob Array and Reference, and set Reference Type (e.g., Name).
  • Use 'Import From C#' to paste an existing struct and populate the UI.
  • Export either as individual files or a single ZIP.