Reputation: 3135
I need to import an fbx into UE4 using c++. This is to eventually write a batch importer that sets up material connects etc upon import.
I am, however, stuck at the first hurdle.
I cannot find any info on this anywhere.
How can I load an fbx model into the editor using c++ ?
edit:
I do not need to do this at runtime, I just need to import the models into the editor, and adjust their location/material settings as I do so..
Upvotes: 3
Views: 4126
Reputation: 949
Parse the .fbx (there are enough docs), then create the mesh at runtime would be one way.
If you only need the editor stuff, check out the FbxMainImport.cpp
FFbxImporter::OpenFile
FbxNode* GetFirstFbxMesh(FbxNode* Node, bool bIsSkelMesh)
etc...
Upvotes: 1