- Home /
Import 3D Model (.FBX or .OBJ) into Unity at runtime from Web Url
Hi everyone,
I'm trying to find a way to import a 3D model in either .fbx or .obj format into a Unity scene at run time from a web URL. I'm trying to make a personal Unity application that lets me download and load 3D files from a web server that my friends can upload to.
Is this possible? If so, are there scripts for it already or can someone point me in a good direction?
Thanks!
Wich option used it for this to solve ? I need to do the same and I cant find.
Answer by tomekkie2 · Dec 14, 2016 at 04:38 PM
There are plenty assets free and paid on AssetStore and this script on wiki: http://wiki.unity3d.com/index.php/FastObjImporter - regarding import of obj files at runtime.
But FastObjImporter or ObjImporter doesn't use the URL, does it?
The downloaded object from URL is in System.Byte[] format.
Can you suggest some free assets on assetStore?
@chiddaan FastObjImporter uses local files it appears. Try using the WWW class to download the obj from the URL before opening with this.
Hey Joe,
As I said, I have downloaded the object(.obj) using UnityWebRequest. It's in System.Byte[] form.
Now I am just trying to use it as a GameObject in my scene.
I am trying to figure out, how to use this code and my Byte[] to talk to each other.