Hey there,
I read an incoming xml that tells the app which scene to use, model to use, wich animation, which skin/material, etc.
My problem now is that I cannot put all of these objects to be loaded into a scene and then just create a GameObject from it, as this would make memory explode
I need to dynamically load a model and apply to it the correct animation during runtime. How would this be possible in Unity? In all examples, and from my testing, you already have “finished” models with an animation attached (in which you have to state which AnimationClip goes from frame x to y).
But I really need to load the model file & the animation file (those should not be combined, but each animation set in a different file) when the application is already running. And THEN create a GameObject from it.
And once the scene with those dynamically loaded objects is finished rendering, the scene must be unloaded, freeing previously loaded models, animation, etc., but I guess Unity does that automatially when you unload a scene.