How can I load FBX file in Unity runtime?

Redwings picture Redwings · Aug 6, 2018 · Viewed 19.2k times · Source

I am on a hololens project. My boss says, load the fbx file at runtime (we use unity). Our fbx file changes at runtime, so we must reload it (fbx is change from 3dMAx).

I tried the AssetBundle, but I can't create Assetbundle files without unity or unity editor mode. As far as I know, only resource (in Project tab) can insert assets to assetbundle. If I can build Assetbundle file by fbx file without unity project, I can do all.

To sum it up: I need way how to load fbx in runtime without unity resource. If I make fbx asset to assetbundle in runtime (fbx is not belong in project tab), it's ok.


edit)

Using trilib asset is the best way. I try make own FBX loader, it's too difficult and a big job. I think trilib is not perfect, but it is the best.

Answer

perza picture perza · May 14, 2019

You could consider converting FBX into glTF, which Unity can load at runtime with UnityGLTF tools.

https://github.com/KhronosGroup/UnityGLTF