Skip to content
SheetForge

Undo and staged edits

Every change you make in the Data Studio is staged until one reflect writes it to the sheet. This page covers undo, how staged edits survive re-imports, the validation that runs before a write, and the guards around a session.

Undo and redo

Every staging change integrates with Unity's native Undo. Ctrl+Z and Ctrl+Y step through all of these:

  • Cell edits
  • Key edits
  • Column add, remove and cancel
  • Row add and delete
  • Marker toggles
  • Reorders
  • Property edits
  • Tab renames
  • Canvas links and unlinks
  • Asset drops, together with the registrations they stage
  • Even Discard, which drops every staged change at once

Limits of undo

  • While you type in a text field, the field itself consumes Ctrl+Z first. This is standard Windows behavior.
  • After a successful reflect, the staging history is cleared. Ctrl+Z moves within the pre-reflect session only.
  • Changes already written to the sheet are undone by editing the sheet.

Staged edits and re-imports

A staged edit carries a logical address: tab, row key and field. It does not carry a physical row number. The address is resolved again just before the reflect.

So your staging survives automatic re-imports and background baseline changes.

Isolated edits

An isolated edit is a staged edit whose row can no longer be found in the sheet. The sheet changed outside the Studio in a way that breaks resolution:

  • The row's key was renamed outside.
  • The row was deleted.
  • A key now conflicts.

An isolated edit is excluded from the reflect. It is not silently dropped, and it is not allowed to block the rest of your session.

The toolbar shows a badge with the number of isolated edits.

You can discard an isolated edit individually after a confirmation. Then stage the edit again against the current sheet.

Validation before a write

The pre-flight is the validation that runs before a reflect writes anything. It validates the entire projected state in memory. The projected state is the baseline with your staged edits applied.

The pre-flight covers:

  • Reference integrity
  • @overlap uniqueness
  • Asset keys and asset types, with the registrations staged in this session counted as present
  • Any plugin domain validators

If validation fails, nothing is written and you get the full report. The write starts only after the whole projected state passes.

Registrations staged with the write

The staged Addressables registrations run after the sheet write succeeds and before the automatic re-import.

A reflect whose only staged change is a registration still runs it and re-imports. See The reflect chain.

Session guards

The Studio guards a session in these ways:

  • External-change detection for local sources.
  • A close warning when staged changes exist.
  • A guard against a stale grid. If a re-import changed the baseline after you started editing, the reflect stops before it writes and a dialog names the tabs.
  • Progress bars during import, export and Push. They appear in your language, and they are always cleared, even when the operation fails.

Read-only sources

The Studio is aware of the source mode. With a read-only source (Google ExportUrl), Push, reflect, structure edit and delete are disabled. A mouse-over explanation says why.

Extensions that fail

A misbehaving extension cannot take the window down. Canvas overrides, widgets and actions are called inside try/catch. A failure is an English console warning, and the rest of the window keeps working.

Try values on a baked asset

In the Project window, select a baked database asset, such as ItemsDatabase. Its Inspector carries the toggle Test edit (temporary — not written to the sheet).

The toggle is off by default, which means read-only. Turn it on to temporarily adjust SO values and try runtime numbers.

Caution

A test edit is never written to the sheet. It is gone on the next re-import.

Find a record in the Inspector

The same Inspector has a record lookup above the toggle. Type a record's codeName key or its integer id, and press Find. The lookup works in the editor and in Play mode.

Preview staged values from a tool

The Studio has no button that previews staged values on the baked SOs. The test edit toggle covers the everyday case.

A tool of your own can preview staged values on the baked SOs through the public API EphemeralSoApply. It applies what it can truthfully compute. It skips pending columns and parse-failure cells rather than faking them. See Preview on baked assets.

If you used the preview button of the Workbench window, see The removed Workbench window.

Next steps