Hooking into UFbxFactory::FactoryCreateBinary()

I found something!


const FString Filepath = FString("C:\\Temp\\MyProject\\Import\\assets\\") + Filename;
FFbxImporter * Importer = FFbxImporter::GetInstance();
Importer->ImportFile(Filepath);

Which is surprisingly simple yet was hard to find. But it doesn’t work! I’m still getting this same problem from months ago:


1>C:\Program Files\Epic Games\4.9\Engine\Source\Editor/UnrealEd/Private/FbxImporter.h(76): fatal error C1083: Cannot open include file: 'fbxsdk.h': No such file or directory

I’ve figured out what it needs is the UnrealEd module (which I’ve had included for ages) and the FBX third party module. Unfortunately adding the last one in makes no difference. I’ve also tried adding EVERYTHING from UnrealEd.Build.cs and also linking directly to the FBX SDK in the engine source. Nothing helps.

Are there any Epic staff members out there who can explain this?