From 45406df9747989c7c144c6f2e6f95aedeb14f9fc Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 17 Sep 2026 19:32:53 +0200 Subject: [PATCH] Rule sub-asset references as Addressables guid[name] keys Co-Authored-By: Claude Opus 5 --- docs/addressables-cut.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/addressables-cut.md b/docs/addressables-cut.md index 97004fb41..4499ec989 100644 --- a/docs/addressables-cut.md +++ b/docs/addressables-cut.md @@ -22,6 +22,13 @@ Addressables, stored as the asset's `.meta` GUID and loaded through Addressables One rule for every engine asset reference from data. No dual Resources/Addressables path. Rulings: Q1 (A), one `Assets/Content` folder entry (operator, 2026-09-17: "I take your recommendation"). Open: none. +Ruling S (A), sub-assets (operator, 2026-09-17: "A"): a stored reference is the Addressables key, +the bare GUID for a main asset and `guid[subAssetName]` when a sub-asset (e.g. one sprite of a +sheet) is picked. It is what `AssetReference` keeps (GUID plus sub-object name), and +Addressables loads both forms. The drawer writes and reads both; `EngineAssets.Load` passes the +key through. Found by Soul on CultLib `0155ba8`, before release. +Correction: Cut 0's negative grep `AssetPath` also matches Unity's `GUIDToAssetPath`/ +`AssetPathToGUID`; the check is `git grep -n "CultInspectorAssetPath\|\.AssetPath"`. ## 0. Target