Import plugin context that handles the actual import of realvirtual components. More...
Public Member Functions | |
| override void | OnAfterImportScene (GLTF.Schema.GLTFScene scene, int sceneIndex, GameObject sceneObject) |
| Resolves a type by its full name, searching through all loaded assemblies if needed Uses caching for improved performance. | |
| override void | OnAfterImport () |
| Legacy callback - kept for compatibility but no longer used. | |
| override void | OnAfterImportNode (Node gltfNode, int nodeIndex, GameObject nodeObject) |
| Called after each node is imported. Reconstructs realvirtual components from extras data. | |
Detailed Description
Import plugin context that handles the actual import of realvirtual components.
Reconstructs MonoBehaviours from GLTF extensions and resolves object references.
Member Function Documentation
◆ OnAfterImport()
| override void realvirtual.realvirtualImportPluginContext.OnAfterImport | ( | ) |
Legacy callback - kept for compatibility but no longer used.
Reference resolution now happens in OnAfterImportScene which is reliably called both in Editor and at runtime.
◆ OnAfterImportNode()
| override void realvirtual.realvirtualImportPluginContext.OnAfterImportNode | ( | Node | gltfNode, |
| int | nodeIndex, | ||
| GameObject | nodeObject | ||
| ) |
Called after each node is imported. Reconstructs realvirtual components from extras data.
◆ OnAfterImportScene()
| override void realvirtual.realvirtualImportPluginContext.OnAfterImportScene | ( | GLTF::Schema::GLTFScene | scene, |
| int | sceneIndex, | ||
| GameObject | sceneObject | ||
| ) |
Resolves a type by its full name, searching through all loaded assemblies if needed Uses caching for improved performance.
Called after the scene import completes. This is reliably called both in Editor and at runtime after async import. This is the correct place to resolve references as all nodes are guaranteed to exist.