Asset and visual cells
Asset columns get a picker, a drop target, a thumbnail and a ping button. Color, curve and gradient columns get full editors. This page covers AssetRef, ResourceRef and DirectRef cells, the visual editors, and how to restrict an asset column to a type.
AssetRef cells
An AssetRef@Group cell is a text box plus a ⊙ button, in the spirit of Unity's object field. Whichever way an asset arrives, the rules are the same.
Pick an asset for an AssetRef cell
Press ⊙ in the cell to open the SheetForge asset picker. It lists the addresses already in that group, with search and the current value marked.
- When the column has a
<Type>, the list is narrowed to it. - Sub-assets are listed after their parent as
parent[sub].
A ⊙ Browse project… line under the list opens Unity's own object picker, filtered to that type.
Drop an asset on an AssetRef cell
Drag assets from the Project window onto the cell.
| Column | What it takes |
|---|---|
| Scalar | One asset |
List<> | Any number, appended in order. A key already in the cell is skipped |
What happens next depends on where the asset is registered.
| The asset is | Result |
|---|---|
| Registered in that group | It keeps its address |
| Not addressable yet | It is staged for registration |
| Registered in another group | A dialog asks first, then a move is staged |
Staged registration
An asset that is not addressable yet is staged for registration. The cell gets its address at once. The address is the file name without extension.
The group entry is created when you reflect, after the sheet write has succeeded. If the group does not exist yet, the reflect creates it as well. Nothing in the project changes before that, and discarding the staging changes nothing at all.
Staged registrations appear in the push modal under Addressables. They count toward the number beside ↑ Send in the toolbar.
Assets from another group
An asset registered in another group asks first. The dialog names the two groups and how many other cells reference the asset through the old one. Then it stages a move.
Undo a staged registration
Ctrl+Z removes the cell value and the registration together.
Retyping the cell so that nothing references the address any more drops the registration in the same step. A stale registration never survives on its own.
Refused drops
These drops are refused, with a toast saying why:
- Scene objects
- Folders
- Several assets dropped on a scalar cell
- An asset that does not satisfy the column's type
- An address already used by a different asset in that group
Diagnostics before you reflect
The Problems panel reports UnknownAssetKey and AssetTypeMismatch before you reflect.
A staged registration is not an error, because the projected state already counts it. The projected state is the baseline with your staged edits applied.
Without the Addressables package
Without the Addressables package, the ⊙ button and the drop are disabled, with the reason as a tooltip. Typing an address still works.
ResourceRef cells
A ResourceRef cell has the same picker, drop target, thumbnail and ↗ ping as an AssetRef cell.
Pick an asset for a ResourceRef cell
Press ⊙ in the cell. The picker lists the assets under the project's Resources folders, narrowed to the column's <Type>.
Drop an asset on a ResourceRef cell
Drop an asset onto the cell. The cell receives the path below the Resources folder, without the extension.
If the asset sits under no Resources folder, the Asset is outside a Resources folder dialog opens. It offers Move, Copy and Cancel. Picking such an asset in the picker opens the same dialog.
Moving or copying an asset is an operation of Unity's AssetDatabase. Ctrl+Z does not undo it. Ctrl+Z does undo the cell write that follows.
Moving changes where the asset lives in the project. When DirectRef cells name that asset by its path, the dialog says how many of them would stop resolving. Copy then becomes the default.
Choose Move or Copy. The asset goes into the destination folder, and the new path is then written into the cell.
The destination depends on the delivery mode of the workbook. A workbook is one settings asset, and its delivery mode decides how baked databases reach the game.
| Situation | What happens |
|---|---|
The workbook's delivery mode names a Resources folder | The asset goes there |
| The workbook's delivery mode names none | The asset goes to Assets/Resources |
| The destination folder does not exist | SheetForge creates it |
| You drop a whole selection on a list cell | The dialog asks once |
Drops that a ResourceRef cell refuses
These drops are refused without a dialog, with the reason:
- An asset that is not a file under
Assets/, such as an asset inside a package. - A drop in a workbook whose delivery mode does not accept
ResourceRefcells. - An asset whose file name a cell cannot hold. A name that ends in a bracketed suffix or contains
;is one. - A destination that already holds a file of that name.
DirectRef cells
A DirectRef cell has the same picker, drop target, thumbnail and ↗ ping.
- ⊙ lists the project's assets of the column's
<Type>. - A column with no type restriction lists nothing, because the whole project is not a shortlist. Use the Browse project… row in the picker.
- A drop writes the project path. It writes the GUID when the settings ask for it.
Cells that need no registration
Neither a ResourceRef cell nor a DirectRef cell stages anything for the reflect. A Resources path or a project reference needs no registration.
Sub-assets
In a ResourceRef or DirectRef cell, a sub-asset is written parent[sub]. When the sub-asset's name is redundant, the cell leaves it out and writes the short spelling, such as Badges/badge_rare.
Sub-assets lists the conditions for the short spelling. A texture holding several sprites and a column with no type restriction both keep the [sub]. An AssetRef cell always writes parent[sub].
Ping the asset
Every asset cell carries a standing ↗ button on its right. Press it and the Project window pings and selects that asset.
| Cell | What the button does |
|---|---|
| A list cell | Selects every asset it holds and pings the first |
A parent[sub] address | Pings the sub-asset itself |
| An address that does not resolve to an asset | Stays visible but disabled, with the reason as its tooltip |
Holding Ctrl (Cmd on macOS) while you click the cell does the same. A plain click still edits the text.
Right-click a cell for Ping in Project, which covers list cells too. On an optional column the menu also has Clear (default).
The canvas's value rows carry the same ping button, because they are the same widget.
Thumbnails
When an AssetRef cell's address resolves, a small thumbnail stands beside the text. It appears for any asset type the editor can render a preview for. It is sized so the row height never changes. A List<> cell shows its first element's thumbnail.
Click the thumbnail and a floating enlarged view opens. On the record canvas, image assets are drawn large on the card.
An address that does not resolve shows no thumbnail. The ↗ ping button already carries the reason.
Audio clips
Play a clip
An asset cell whose address resolves to an audio clip gets a play button beside the address. AssetRef@Group, ResourceRef and DirectRef cells all get it. The button plays the clip through the editor's own preview channel.
Pressing the button again stops the clip. Switching cells, closing the window and a domain reload stop it too.
When the editor build cannot provide the preview facility, the button stays visible but disabled, with the reason as its tooltip. On a cell whose asset is not an audio clip there is no button.
Steer the waveform
Click an audio cell's thumbnail. The enlarged view opens wide rather than square, because a sound has no proportions to preserve, only a time axis.
The waveform fills the bar, and a marker crosses it while the clip plays. The elapsed and total time read out beneath. Click or drag anywhere on the waveform to play from that point.
Whatever the running editor cannot provide drops out on its own, with the reason in a tooltip. A clip whose samples cannot be read falls back to the engine's rendered preview inside the same bar.
Color, curve and gradient cells
A Color, AnimationCurve or Gradient scalar cell shows its value as a picture that fills the cell: the color or the gradient over a checkerboard, or the curve's line. Click it, or press Enter or Space, and an editor for that type, the same one the web app uses, opens beside the cell:
- The color editor: four ways to pick a color, with an alpha slider and a hex field under each. See Pick a color.
- The curve editor: presets, wrap modes, draggable keys and tangent handles.
- The gradient editor: color and alpha keys, the blend mode, the color space, and two buttons that rearrange the keys. See Rearrange gradient keys.
Every change commits the canonical text at once, so the cell, the canvas and Problems follow while the editor is open. Visual types describes that text.
One editor session, such as a drag in the color square or a round of moving curve keys, coalesces into one undo step. Typing follows the same rule. Esc puts a color back to what it was when the editor opened.
On an optional column an empty cell shows —. Click it to open the editor at the type default. To empty it again, right-click and choose Clear (default).
Pick a color
Tabs at the top of the color editor switch between four modes. The editor opens in the mode you used last, in any color cell or gradient color key.
| Mode | How you pick |
|---|---|
| Square | Saturation and value on a square, and hue on a slider below it |
| Wheel | Hue on a ring, and saturation and value on a square inside it |
| Sliders | RGB and HSV channels, each with a number field and a track painted in the colors it reaches |
| Swatches | 25 preset colors, and the 10 colors you picked most recently |
Under every mode, the alpha slider and the hex field stay the same. A gradient's color key has no alpha slider there, because its alpha keys are edited on their own.
Picking a swatch changes the color and keeps the current alpha. A color joins the recent row when you close the editor on a changed color. The recent colors and the last mode are kept per user, not per project.
Rearrange gradient keys
Two buttons in the gradient editor move the keys for you.
| Button | What it does |
|---|---|
| Reverse | Turns the strip around. The color keys and the alpha keys flip together |
| Distribute evenly | Spaces the keys of the selected key's row evenly. The other row stays as it is |
Distribute evenly needs at least two keys in that row. In the Fixed blend mode, Reverse mirrors the bands of color, and two keys that would land on the same time become one.
Lists of visual values
List<Color>, List<AnimationCurve> and List<Gradient> cells are chip editors. Each element has one chip: a swatch, a curve thumbnail or a gradient bar. A + chip follows them.
Clicking opens a popup that edits each element with the same editor, plus ▲▼ and ✕. Add, remove, reorder and each element edit are each their own undo step, because a list's order is data.
In the table, lists of other types stay canonical text. On the canvas, a list of plain values unfolds into one row per element. See Value lists.
The canvas value rows use exactly the same chip editors.
Restrict an asset column to a type
Adding or editing a column opens the column form as a dialog. The create-sheet form's field editor works the same way.
While the notation typed in the @type field is an AssetRef@Group, a ResourceRef or a DirectRef, a row with a Type… button appears under the type field. For any other type the row is not shown.
The button lists the asset types the project can load. The list is searchable. Each entry shows the short name, with the full name as subtitle.
Picking a type rewrites the field to AssetRef@Group<Type>, ResourceRef<Type> or DirectRef<Type>.
List<>, ? and =default are left untouched. No restriction (any asset) removes the <…>.
Typing the restriction by hand works too. The column-header tooltip shows the resolved full type name.
Types the delivery mode refuses
The @type list itself offers every asset type, because the sheet is the source of truth and the import is what reports the column's problems. A type that the project's delivery mode refuses shows the reason beneath it.
Next steps
- Edit cells
Widgets for the other column types, reference pickers and the reflect.
- Asset references
How asset columns are written in the sheet.
- Visual types
The canonical text of colors, curves and gradients.
- Registrations and build checks
What the reflect does with staged registrations.