837 B
837 B
ADR 0005: Prefab Instance and Asset Registry
Status
Accepted
Context
Editor prefab placement and content pipeline work (H1/H2) require stable asset identity across sessions. The asset browser previously regenerated UUIDs on every sync, breaking references.
Decision
- Persist stable
AssetId(UUID) perassets/path inassets/.index/registry.ron. - Introduce
PrefabInstance { asset_id, source_path, overrides_ron }on placed prefab roots alongside hydration viaPrefabRef. - Scene save includes
PrefabInstanceand gameplay marker components fromshared.
Consequences
- Prefab paths can be resolved through the registry for dependency tracking.
- Override apply/revert (H2) builds on
overrides_ronwithout changing the instance component shape. - Registry must be version-controlled with the project.