GLTFUtility
GLTFUtility copied to clipboard
Incrementally populate GameObject
I would like to be able to hand the importer a GameObject as a root node and see the file's contents load into that GameObject incrementally. What would be the easiest way to allow that? It looks like the Load methods load in different parts of the file, and nodes are created last. Would it be possible to change the order? Or break up the deserialized JSON to work on it in stages?
The importer does not support this unfortunately. Cant you just move the returned game object into the new root instantly after importing?
Our issue is that the execution of the app pauses when a large GameObject is added to the scene, especially for larger models, but we want to keep the frame rate fairly constant. The async load methods are useful for loading in parallel, but adding the resulting GameObject to the scene still hits the frame rate pretty hard at the end.