- Home /
Import fbx by code
Hi all
I have a problem and not know where to begin, what happens is that I am new to this part of matter, the issue is that I need to import a fbx by code to a scene in unity which is in another directory outside the project, I found something obj files but it's for
Please any information is valid
PS: Sorry for my English
Answer by Bunny83 · Oct 18, 2011 at 09:19 PM
Ok first you have to seperate the Unity runtime from the Unity editor. The runtime (the actual engine) doesn't provide any functions to read fbx models. Everything in Unity is managed as an asset which have to be imported in the editor which is able to load fbx files.
It would be possible to use you own / third party fbx importer at runtime to load an fbx model but not out-of-the-box. Usually to load models at runtime you would use a simpler format like wavefront .obj / .x which are well documented.
Thanks but the point is that I do this by working with obj files gives me problems with shadows and with a probe and the problem disappeared fbx so that there get started with this search
Our scenario is also same, in our project we have to upload fbx file from a different directory outside the Unity 3D project. This file has to be imported into Unity and then convert it to unity3d file which can then be shown in a scene. Can you please elaborate more on ‘how to separate the Unity runtime from the Unity editor’? Also how to use the custom fbx importer to import FBX file?
Your answer
Follow this Question
Related Questions
Blender import missing faces please help!! 6 Answers
Maya FBX Model Import Issues 2 Answers
Importing .FBX with a lot of animations. 1 Answer
Materials missing from FBX Maya to Unity 1 Answer
Materials Assignment Problem In Unity ! 0 Answers