- Home /
Loading models from web during runtime; possible?
Hey all,
So I've lots of experience using dynamically loaded stuff at runtime locally using the Resources class, however, for a current project, I've a more difficult problem to solve.
So I using the WWW class and MiniJSON, I grab basic information (strings/ints) and an address for a model stored on a server. So, I have a basic .ma (Maya) model stored at ftp://test.check.com/models/boat.ma, and at runtime, I want to load it into my scene.
What can I use to accomplish this?
Answer by Eric5h5 · Jul 03, 2012 at 11:29 PM
You'd have to write a Maya importer script. If you have Pro you could use assetbundles, though the models in that case would still have to be processed in Unity and couldn't just be arbitrary models from anywhere.
I do have Pro, and I saw the assetBundles scripts as I was looking around for an answer, but doesn't that mean a set of objects would have to be exported as an assetBundle? This would need to be completely arbitrary, like, out of a bunch of fruit models, dynamically loading an apple and pear.
And as for a $$anonymous$$aya importer script, I wouldn't even know where to start. :\
Update: Apparently he miscommunicated with me, and every model we need will be in the Unity project. Follow up question: difference between Resources and Strea$$anonymous$$g Assets? I'm a bit befuddled on that.
I've used Resources extensively, but only on iOS, not on web builds, which is what this will be. Any differences, pros/cons I should know about?