GLTFUtility icon indicating copy to clipboard operation
GLTFUtility copied to clipboard

Incrementally populate GameObject

Open tfurlong opened this issue 3 years ago • 2 comments

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?

tfurlong avatar Oct 11 '21 12:10 tfurlong

The importer does not support this unfortunately. Cant you just move the returned game object into the new root instantly after importing?

Siccity avatar Oct 17 '21 08:10 Siccity

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.

tfurlong avatar Oct 18 '21 12:10 tfurlong