Skip to content
SheetForge

Introduction

SheetForge turns a spreadsheet into strongly-typed C# classes and baked ScriptableObjects that your game loads by a stable key. The spreadsheet is a Google sheet or a local TSV, CSV or xlsx file.

Validation at import

Every cell is validated at import. A bad value is caught when you import, not when the row is first hit at runtime. It is reported as a sentence with its tab, row, column, and a suggested fix. A tab is one table of your data: a file in a local folder, a sheet of an xlsx file, or a tab of a Google spreadsheet.

The pipeline works like a compiler. It collects all errors in one pass and assembles the immutable Definitions only from a fully clean sheet. Those Definitions are the intermediate representation (IR), the validated, assembled form of the sheet.

The sheet as the source of truth

The sheet is always the single source of truth. The baked ScriptableObject (SO) is only a lookup cache. Two parts of the product are built around that rule.

The first is the round-trip. Import has a reverse path. Export and Push write values back into the sheet while preserving its structure. Export writes sheet files, and Push sends values to the live Google sheet, cell by cell.

The second is in-editor authoring. The Data Studio is an editing window inside the Unity editor. It edits the sheet with Ctrl+Z undo.

Plugins and the authoring kernel

Plugins add cell types, validation rules, graph edges, and import sources without editing Core. The C# compiler enforces that boundary.

The public API is an authoring kernel. A second editing tool, such as a node-graph canvas, can be built on it with zero Core or Editor changes. See Authoring kernel.

How it works

              ENTRANCES                    TRUTH                       EXITS
  ┌───────────────────────────┐   ┌──────────────────┐   ┌───────────────────────────────┐
  │ Google Sheets (SheetsApi/ │   │                  │   │ Strongly-typed C# classes     │
  │   ExportUrl)              │──▶│  Immutable IR    │──▶│   (codegen, last stage)       │
  │ Local TSV / CSV / xlsx    │   │  (Definitions)   │   │ Per-tab Database SO (bake)    │
  │ Data Studio (in-editor    │   │                  │   │   → load key (any delivery)   │
  │   authoring, WYSIWYG)     │   │  built ONLY if   │   │   "SheetForge/{tab}"          │
  │ Custom source providers   │   │  validation is   │   │ Export / Push back to the     │
  │   (plugin, e.g. DB/REST)  │   │  100% clean      │   │   sheet (round-trip)          │
  └───────────────────────────┘   └──────────────────┘   └───────────────────────────────┘

Every entrance produces the same validated IR, and every exit (codegen, bake, Export and Push) is derived from it. One error anywhere means no output at all. There is no partial assembly.

This replaces what a team otherwise writes per table: the parser, the validator, the code generator, and the loading path.

What every error tells you

PartContent
WhereTab, row, column letter and field name
WhatThe offending value
WhyThe violated rule
HowAn actionable suggestion

Errors use structured error codes. Error code families lists the families of codes.

Requirements

SheetForge needs Unity 2022.3 or newer. It is developed and tested on Unity 6 (6000.0.79f1, URP).

A delivery mode decides how baked databases reach your game. The Addressables package (com.unity.addressables) is needed only in the recommended Addressables delivery mode. The Resources-folder and scene-catalogue modes need no package. SheetForge itself compiles with or without the package.

Each workbook in a project picks its own mode. A workbook is one settings asset, with the source, the output folder and the namespace that asset names.

Getting started covers choosing a delivery mode and the guided install.

Design principles

The sheet is canonical

Direct SO editing is not a workflow. Everything goes through the sheet and re-import validation.

The inspector of a baked database asset has a test edit toggle for temporary runtime experiments. A test edit is never written back and disappears on re-import.

Collect everything, assemble nothing broken

Validation never stops at the first error, and one error means no output. You fix a complete list once, instead of a fix-one-reimport loop.

WYSIWYG authoring

In the Data Studio, an edit is staged first. The Data Studio holds a staged edit until you reflect, which writes the staged edits to the source. Everything you stage is immediately visible exactly as it will land. Added columns appear and deleted rows vanish before you ever write to the sheet.

Fully automatic

After an authoring action, the chain codegen → recompile → bake completes without you re-triggering anything, across the domain reload.

Open-closed extension

New cell types, validation rules, graph edges, and import sources join by registration. The pipeline itself is never modified.

Documented limits

What the product cannot do is documented as precisely as what it can. See Capabilities and limits.

Open data

The truth is a plain TSV/CSV/xlsx file or a Google sheet, readable by any tool. Removing SheetForge removes the pipeline, not your data.

SheetForge Web

A companion web app at web.sheetforge.workers.dev brings authoring, validation and reflect to the browser.

The web app compiles the same C# core to WebAssembly. It is not a re-implementation, so the parser and validator can never drift from SheetForge in Unity. A Unity-built plugin DLL loads unmodified.

Codegen and baking stay a Unity-only responsibility. The web output is the sheet with your edits reflected into it.

Every sheet-syntax rule on this site holds identically in the browser, including IntId@Tab reference parity. The pages under Work in the browser cover the app, its plugin market, and its Google Sheets access.

Documentation map

Start and learn the model

PageWhat it covers
Getting startedRequirements, installation, choosing a delivery mode, settings, your first import, the demo scenes
What's newWhat each version changed from the one before it, and what to change in your project when you upgrade
Core conceptsThe sheet as single source of truth, the IR, the pipeline stages, the baked SO as cache, baselines, the automatic import chain
Sheet syntaxMarkers (@name/@type/@desc/@overlap/@style/@enum/@loc), the full type system, enum definition sheets, notation rules

Author and sync data

PageWhat it covers
Data StudioThe editing window: lookup, search, cell editing, structure editing, the record canvas, Ctrl+Z, pre-flight validation
Sources, export and pushLocal and Google sources, provider settings, Export round-trip, Push safety guards, dropdowns written into the sheet
Several workbooksThe active workbooks, references across workbooks, the workbook map
Google Sheets setupCreating the service account and JSON key, sharing the sheet, pointing SheetForge at the key
UI languageThe 10-language UI, per-user language, menu regeneration, adding translations
Localization sheetsYour game's text as a sheet: @loc locale columns, LocRef references, key constants, the Unity Localization String Table bridge, translation workflows

Extend SheetForge

PageWhat it covers
Plugin authoringThe 16 plugin contracts and the opt-in capabilities
Authoring kernelBuilding a second editing tool (e.g. a graph canvas) on the authoring engine's public API

The 16 plugin contracts are cell types, validators, edges, markers, templates, canvas overrides, code registries, themes, declarative authoring surfaces, UI strings, pipeline observers, sources, and the Studio widgets, actions, cell editors and panels.

The opt-in capabilities include full reference parity for your own notation. With a plugin, you add a domain with zero Core edits.

Look things up

PageWhat it covers
API referenceThe complete public API surface, with every public type, by assembly
Capabilities and limitsThe complete list of what works, what doesn't, and why
FAQ and troubleshootingFirst-run and integration issues, with fixes

Work in the browser

PageWhat it covers
SheetForge WebThe browser companion: the same core compiled to WebAssembly, authoring/validation/reflection parity, when to use it
Web plugin marketInstalling plugins from the registry (one-click, hash-pinned), the compatibility gate, sideloading unreviewed plugins by GitHub URL, the market dialog inside the Data Studio
Web Google Sheets accessReading and writing Google Sheets from the deployed site over your own OAuth, and the local-only service-account-key rule

Next steps