Skip to content
SheetForge

Type and asset limits

This page lists the limits on enums, asset references, visual types and ownership coloring. Each entry says what the limit is, why it exists, and what you can do about it.

Enums

Code-owned enums take no members from a sheet

What. An Enum<T> whose T a plugin registered with enums.Register<T>() is owned by code. An enum definition sheet may not claim that name. The attempt is reported as DuplicateEnumName. On a column of such an enum, the cell dropdown has no Add a new member… row.

Why. The sheet is canonical only for what the sheet defines. A member written into a sheet that does not decide the compiled type would never appear in code. The UI leaves the row out instead of offering an action that would fail.

Workaround. If the sheet should own the enum, move the enum into an enum sheet. Otherwise, add the member in your plugin's C# and recompile.

Structure. Structure edits follow the same ownership line. An enum definition sheet's structure is fully authored in both hosts, the Data Studio and the web app: define, rename, delete, reorder columns, and edit the underlying type and description. None of these edits can touch a code-owned enum name, and a definition sheet cannot claim one either. The refusal names the reason.

Enum members only append

What. The enum sheet's structure is authored in place, in the editor and the web app alike. Member rows only ever append, and a gap is never back-filled. The view offers no sort or filter.

Why. A member's position is its integer value. Filling a hole or rearranging members would silently renumber values already baked into assets and stored in save files. Column order carries no meaning, so reordering columns is always allowed.

Workaround. To pin a value explicitly, use the Name=value syntax. Presentation order elsewhere is the consumer's concern, not the sheet's.

Sheet-defined enums land in the generated-code folder

What. Generated tab types regenerate in place, in whatever folder they already live in. The enum file, SheetForgeEnums.cs, has no tab to anchor to. It is always written to the generated-code folder named in the settings.

If a tab whose generated code lives in its own package folder uses a sheet-defined enum, that package assembly fails to compile with CS0246.

Why. Enums are not a per-tab output. One file in each generated-code folder holds the sheet-defined enums of every workbook that generates into that folder, with one namespace block per owning workbook. There is no single tab whose home the file could follow. See Shared enum files.

Workaround. Put both generated folders in one assembly, or register that enum from plugin code instead. The failure is a visible compile error with the missing type named, never silent corruption.

Asset references

Typed asset references resolve against loaded types

What. AssetRef@Group<Type> accepts any UnityEngine.Object-derived asset type the project can load, engine or your own. There is no allow-list. Three cases are refused rather than guessed.

Type nameDiagnostic
A short name that several loaded types share, unless exactly one of them is concreteAmbiguousAssetType
An unknown nameUnknownAssetType, with a nearest-match suggestion
A type that lives in a predefined assemblyAssetTypeNotReferenceable

A shared short name still resolves when exactly one of its types is concrete. With the engine's TextAsset and the text engine's abstract TextAsset both loaded, <TextAsset> means UnityEngine.TextAsset. When two concrete types share a short name, write the full name.

The predefined assemblies are Assembly-CSharp and its siblings. Any script folder without an assembly definition belongs to one.

The same resolver and the same three refusals apply to ResourceRef<Type> and DirectRef<Type>.

Why. The generated companion assembly is an assembly definition, and an assembly definition cannot reference the predefined assemblies. AssetReferenceT<T> for such a T would not compile. Picking one of several concrete types would silently bind the column to the wrong type. An abstract type is never the type of an asset on disk, so one concrete candidate is a safe answer.

Workaround. Move the type into a folder covered by an assembly definition, or drop the <…> restriction and keep the unrestricted AssetRef@Group. Components and editor-only types are never candidates.

Web app. The browser does not resolve type names, because it has no project to resolve against. The web app parses <Type> and shows it in the column tooltip. It produces none of the three type-name diagnostics and offers no picker or drop.

Codegen. Codegen never emits an unresolved name verbatim. A name it cannot resolve falls back to AssetReference with an AssetTypeUnresolvedFallback warning.

Staged registrations run after the sheet write

What. Dropping or picking an asset writes the address into the cell at once. It also stages the Addressables change (add, move or create group) for the reflect. The change runs only after the sheet write succeeds. Two situations behave differently.

SituationStaged registrations
Registrations are the only thing stagedThey run on their own, followed by the automatic re-import
The reflect could not write because its tabs are xlsx-backedThey stay staged

These rules decide what happens to each registration.

CaseResult
Nothing references the registration any moreDropped when the cell is retyped
An unreferenced registration survives to the reflectSkipped as unreferenced
The asset is already in the groupIt keeps its existing address
The asset is in another groupMoved only after a confirmation that names the other cells referencing it
A different asset in that group already uses the addressRefused rather than renamed

The auto-address is the file name without extension.

New groups are created with the same schema types as the project's default group. See Unity 6.6.

A ResourceRef cell takes the same drop and picker but stages nothing. The drop writes the path below the Resources folder, without extension.

An asset that sits under no Resources folder opens the Asset is outside a Resources folder dialog, which offers Move, Copy and Cancel. The move or copy cannot be undone with Ctrl+Z. Drops the cell cannot take, such as an asset inside a package, are refused without a dialog. See Drops that a ResourceRef cell refuses.

A DirectRef cell writes the project path, or the GUID when the settings say so. It accepts any asset in the project.

Applied and skipped items are logged to the Console with their reasons. For a local folder source, the reflect's completion dialog repeats the summary (Addressables: N registered, M skipped).

Why. The sheet is canonical. The project must never change for a reflect that did not reach the sheet. An entry no cell points at would be an orphan the sheet does not explain.

Workaround. If a registration was skipped, the next re-import reports the cell as UnknownAssetKey. Fix the cause and reflect again.

Registration exists in the Addressables mode only. A Resources path or a project reference needs none.

Sub-assets are addressed as parent[sub]

What. A sub-asset is addressed the way Addressables names it, as parent[sub]. A sprite in a texture and a material in a font are sub-assets. That address is checked against the sub-asset's own type.

The parent address satisfies its own type and every sub-asset type it contains. That is what lets a texture imported in Sprite mode pass a <Sprite> column.

Dropping a sub-asset stages the parent for registration and writes parent[sub] into the cell.

Boundary. A sub-asset entry has to exist in the Addressables catalog for parent[sub] to validate. The picker lists the sub-keys it knows after their parent.

Visual types

Colors, curves and gradients are normalized

What. Color is four bytes, so it has no HDR. Curve tangents follow their mode, and gradients are quantized.

TypeCaseResult
ColorA channel above 1 (HDR)Clamped to 0…1 on Export
AnimationCurveA tangent whose side is Auto, Linear, Constant or ClampedAutoRecomputed from the mode at import
AnimationCurveOnceRead as ClampForever and never written back to the sheet
AnimationCurveA curve with no keysNo text form. It exists only as the empty cell of an optional column
GradientKey timesQuantized to 16 bits on import, exactly as Unity stores them
GradientA single-key gradientComes back from Unity as two identical keys
GradientThe color spaceWritten only when it was set

When a tangent is recomputed, a hand-typed number that contradicts its mode is replaced. Unity performs the same recomputation when the mode is applied.

Why. The value the sheet shows must be the value the engine holds. The normalization Unity would perform later is performed once, at the entrance. Every surface (sheet, editor field, web preview, baked asset) shows one curve and one gradient.

Workaround. When you want the tangent numbers taken literally, use Free/Free. Store HDR intensities in a separate float column.

Chip editors and visual editors cover three types

What. Only the three visual types get visual editors and chip editors.

HostColor, AnimationCurve and Gradient scalarsTheir List<>s
Data StudioPreviews that open the web app's editorsChip editors
Web appPreviews with its own editorsChip lists

Every other list column stays canonical text in both hosts. That covers List<int>, List<Enum<…>> and wrapper lists. A wrapper containing one of the three, such as Pair<Color>, is text too.

Why. The three types are the ones with a picture per element. For the rest, a single canonical line is already the most exact representation. A wrapper's outer notation is owned by its plugin.

Room. A plugin type that stores one of the three values can adopt the same editors. It declares the matching StudioCellEditorHint archetype. See Built-in visual types.

Ownership coloring

What. Ownership coloring is sheet versus code only. The sidebar and legend distinguish exactly two origins: real sheet tabs and the virtual tabs of code registries. There is no third "generated" classification, and no per-column ownership coloring.

Why. Origin is derived from the tab itself, which the window already knows for certain. A per-column classification would need yet another extension point to be truthful, and no user has asked for one.

Not a sheet's color. @style lets a sheet name its own color. That color is display metadata the author chose. It says nothing about where the sheet comes from. The two colorings are read from different places and never merge.

Next steps