Circular Cross-Reference Resolver
DataLoom Pro supports circular references between ScriptableObjects, allowing you to build complex databases that link to each other.
The Circular Challenge
In standard serialization, if Class A references Class B, and Class B references Class A, a single-pass importer fails to resolve the link because the reference targets are not yet generated in the asset database.
Two-Pass Import Architecture
DataLoom Pro resolves this with a two-pass architecture:
- Pass 1 (Instantiation):
- DataLoom Pro instantiates all ScriptableObjects for every row in your spreadsheet.
- It populates primitives, vectors, and local fields.
- References to other ScriptableObjects are skipped temporarily.
- All assets are written and saved to the database.
- Pass 2 (Reference Mapping):
- DataLoom scans reference columns.
- It reads the unique ID key in the cell.
- It performs an
AssetDatabasequery to locate the asset with that ID. - It assigns the reference directly, solving circular structures without missing links.