Skip to content
SheetForge

Asset delivery and loading

Fixes for problems with delivery modes, load calls and asset cells. The page also covers the two changes you meet once after updating to 1.1.0, and the Addressables group on Unity 6.6.

After updating to 1.1.0

LoadAsync stops compiling after the update

Symptom. After you update to 1.1.0, your load code no longer compiles. AsyncOperationHandle, .Task and AsyncOperationStatus are gone.

Cause. Since 1.1.0, SheetForgeDatabases.LoadAsync returns SheetForge's own SheetForgeLoadHandle<T>, the same type in every delivery mode. It replaces the Addressables AsyncOperationHandle<T>.

Fix. Rewrite the call site with the members of the new handle:

  • await handle. A failed load yields null, and the reason is on handle.Error.
  • handle.Status == SheetForgeLoadStatus.Succeeded
  • handle.Result
  • handle.WaitForCompletion(), which is unchanged
  • handle.Release() or SheetForgeDatabases.Release(handle), once per load

You can remove any #if SHEETFORGE_ADDRESSABLES that you had around load code. The load API compiles in every project.

The full before and after table is in Upgrading from 1.0.0. Load the data in Getting Started shows the new shape.

References to baked databases break once

Symptom. After the first 1.1.0 import, scene or prefab references to baked databases are broken.

Cause. The first 1.1.0 import replaces the old, machine-local GUID of each baked database. From 1.1.0, every baked database asset carries a GUID derived from its tab name, so the same tab bakes to the same GUID on every machine. The GUID therefore changes only this once.

ReferenceEffect of the first 1.1.0 import
An Addressables entryRe-linked automatically
An AssetReference field baked from an AssetRef cellUnaffected. It points at your assets, not at a database
A scene or prefab field that pointed at a baked database directlyHas to be re-pointed once

Fix. Re-point each scene or prefab field that pointed at a baked database directly. You do this once, and then the reference holds.

Delivery modes

A column's asset type is refused

Symptom. Import reports AssetCellTypeNotAllowedInDeliveryMode on a column. The error sits on the column's @type cell. It names the mode and the types that the mode does accept.

Cause. The delivery mode of the workbook cannot honor that column's asset type. Each asset cell type works only in the modes that can deliver it, and only DirectRef works in every mode. Cell types and delivery modes lists the mode each type needs.

The mode is per workbook, so another workbook in the project may keep a different one.

Fix. Do one of these:

  • Change the column's type.
  • Change the mode in the settings asset, then re-import.

This check never rewrites the sheet itself, so the Data Studio's type list still offers every type. It shows the reason beneath the ones the mode refuses.

The Resources folder is rejected

Symptom. You chose the Resources mode. The settings complain about the Resources folder, or the game loads nothing.

Cause. The Resources loader hands "SheetForge/{tab}" to Resources.Load. The databases therefore have to sit under a folder named Resources, at SheetForge/{tab}.asset inside it.

In this mode the bake folder field is drawn as Resources folder, and it has to name a folder called Resources itself. Bake folder in the Resources mode says where that folder may sit.

If the folder was still the default when you picked the mode, SheetForge moved it to Assets/Resources for you. A folder you chose yourself gets BakeOutputFolderNotUnderResources and a Use … button, which offers the folder that would work.

Fix.

  1. Change the folder to one that works.
  2. Import again.

The bake folder warning in other modes

Symptom. In the Addressables or scene catalogue mode, the bake folder field shows a warning.

Cause. The bake folder sits inside a Resources folder, so the build would ship the data twice. The field warns in the opposite case from the Resources mode, where the bake folder must itself be a folder named Resources.

Fix. Change the folder. The field offers Assets/SheetForgeBaked. Bake folder in the Resources mode describes both warnings.

Load with Resources.Load

In the Resources mode, Resources.Load<FooDatabase>("SheetForge/Foo") is a perfectly good way to load, because the key is the Resources path.

SheetForgeDatabases.LoadAsync is the route that stays correct if the mode ever changes.

No registered catalogue holds the database

Symptom. In the scene catalogue mode, a load fails with "No registered SheetForge catalogue holds …".

Cause. The one setup step of that mode is missing. The bake writes SheetForgeCatalog.asset beside the databases. A SheetForgeCatalogProvider component in a loaded scene has to reference it.

Fix.

  1. Add the component to a GameObject in your first scene.
  2. Drag the catalogue onto its field.
  3. Load again.

If the catalogue itself is gone, import once so that it is rebuilt. Then drag it onto the provider again. A missing catalogue shows as DeliveryCatalogMissing in the Health Check, or as a refused build.

Workbooks with different delivery modes

Two workbooks may use different delivery modes. Each workbook picks its own mode in its settings asset.

Every import writes that workbook's {Settings}_{guid8}DeliveryRegistration.cs. It registers the workbook's own tabs with the workbook's own mode before the first scene loads. SheetForgeDatabases.LoadAsync("Tab") looks the tab up, and the right loader answers.

  • Nothing is refused for mixing. A single import and Pull every workbook both run.
  • SheetForgeDatabases.DeliveryIdFor("Tab") tells you which mode a tab was registered for.
  • The one thing still refused is two workbooks that publish the same tab name.

A tab is registered by no workbook

Symptom. A load fails with "The tab … is registered by no workbook's delivery registration". The message ends by telling you to re-import that workbook.

Cause. That workbook's generated code predates per-tab routing, or it has not been generated on this machine yet.

Fix. Import that workbook once.

Asset cells

A drop opens a move or copy dialog

Symptom. You drop an asset onto a ResourceRef cell, and a dialog asks you to move or copy it.

Cause. The asset sits outside every Resources folder, so Resources.Load could never find it.

The move or copy is not undoable

The move or copy itself is an operation of Unity's AssetDatabase. Ctrl+Z does not undo it. Ctrl+Z does undo the cell write that follows.

Fix. Choose Move or Copy. The asset goes into the destination folder, and the new path is then written into the cell.

A file with the same name already in the destination is refused, with the reason. Drop an asset on a ResourceRef cell says which folder receives the asset and when Copy is the default.

The cell leaves out the sub-asset name

Symptom. The cell shows Badges/badge_rare, not Badges/badge_rare[badge_rare].

Cause. The sprite is not lost. The cell leaves the sub-asset name out when the shortened spelling can only mean that one object, as with a texture sliced into a single sprite. Both the engine's lookup and the bake resolve the shortened cell to that object.

Sub-assets lists every condition of the rule. A texture holding several sprites keeps [name], and an unrestricted column always writes it. Export and Push apply the same rule, so the spelling never changes on a round trip.

Fix. No fix is needed. The shortened cell loads the same object.

A cell turns red as you type

Symptom. A cell goes red the moment you type a path, before any reflect.

Cause. The grid shows the same diagnostic that the Problems panel lists, on the cell it belongs to:

  • An unknown Resources path
  • A moved asset
  • A GUID the project does not hold
  • A type mismatch

Fix.

  1. Hover the cell to read the sentence.
  2. Fix the value, or fix the asset.

An asset imported, moved or deleted outside the window is picked up after a moment.

Unity 6.6

The SheetForge group on a content directory

Symptom. On a project that builds on a content directory, the Health Check reports Addressables group built like the project default.

Cause. Unity 6.6 builds addressable content on a content directory. What happens to the SheetForge group depends on when the group was created.

GroupSchemas
A group that SheetForge createsCopies the schema types of the project's default group
A SheetForge group that already existed before the updateLeft as it was

On a content-directory project, a new group is created as a content-directory group. On an older project, the new group keeps the two long-standing schemas.

SheetForge leaves an existing group as it was, because converting it behind your back would be an edit of your project. The Health Check names the Addressables package's own Convert schema(s) to Content Directory action for that group.

Fix. Open Window ▸ Asset Management ▸ Addressables ▸ Groups, select the SheetForge group and use Convert schema(s) to Content Directory. You can also match the default group's schemas by hand.

SheetForge's own development and tests do not run on 6.6. Its 6.6 behavior is written to the 6.6 rules but has to be confirmed in your own 6.6 project. Unity 6.6 lists what to check.

Next steps