Two-Pass Reference Resolver
Details on the indexing logic that makes circular references compile cleanly without missing targets.
Technical Mechanics
- Instantiation: Parses rows, loads existing assets or instantiates new ScriptableObjects using
ScriptableObject.CreateInstance(), saving them to disk. - Indexing: Indexes all active ScriptableObjects in the target output folder using their configured unique ID key.
- Reference Mapping: Iterates through fields of type
ScriptableObject. Reads the string key in the column, searches the index cache for the matching asset, and assigns the object reference directly.