- Home /
Load external file (.3ds) during runtime
Hi, i would like to to instantiate an object during runtime. The related file(.3ds) is stored in an externale file (NOT Ressource), so i can add additional files after building the project.
Is there any way to do this WITHOUT AssetBundels (can't use UnityPro).
Thank you in advance
Answer by Bunny83 · Jun 08, 2012 at 02:36 PM
No, The Unity runtime doesn't have any asset importing features included. The only things you can load dynamically at runtime are those image formats: png or jpg and this audio format: Ogg Vorbis. However you can write your own importer if you know the file format. You could also invent your own "asset bundle" format (maybe xml based or something like that). Unity doesn't provide any other way to load assets at runtime besides assetbundles.
Ok could u give me a hint how to do that? All files are in .3ds Unfortunatly i have no idea where to start =(
Thank you!
Well that's not as simple as moving a cube from A to B. There are ready to use packages out there, but they are not cheap since it was a lot of work involved.
Here's a simple OBJ loader.
If you really want to load 3DS files you have to find an importer or write your own. 3ds is a bit more complicated than obj. Here's a specification of the 3ds file format. I'm not sure if it's up-to-date but it looks well documented.
edit Also a bit googling will give you alot of solutions