FBX import

Hi everybody, i’m actually working on a project with Unity. In this project, the final user will have to put his own scenes in a folder and Unity will have to render these scenes. But the user will not have the Unity Editor to create scenes so i think that the best solution for him is to create and export his scenes in the FBX format, and then Unity will load it.

The main problem is that I don’t know how to import FBX in Unity without using the editor.

So i would like to know :

  • Firstly, is there an easy way to import FBX in Unity without using the editor ?
  • Secondly, if there is no built-in functions to load FBX without using the editor in Unity, has someone already made a script for this purpose ?
  • Thirdly, if I have to create my own FBX importer, how should i process ? I have downloaded the FBX SDK but it only provide C++ classes and functions in a DLL and I don’t know how to use a C++ functions in a C# script. Moreover, if i can load the informations from a FBX file, i won’t know how to render it with Unity.

Thank you for your answers :slight_smile:

I cannot answer your question properly, but if you can live with .obj rather than FBX format, there is a package called ‘ObjReader’ on the asset store which deals with loading models at runtime, from local files or the web.

Thank you for your answer but I have got somewhere a script which enables me to load obj files but it takes too long for loading objects, i.e. a mesh with 20000 poly takes 15-20 seconds to load. I hope FBX can provide me a faster import.