(Help pls) Export an FBX while in edtior using C++

Hello folks,
Thanks for the help the last time.

I am in desperate need of exporting selected fbx assets from a level via c++.

As you have an export button for every asset I though it would be easy but I was wrong. I searched the whole source code but am obviously to unknown to find the correct part I need. Anyone able to help?

It would be also great to export it directly to a path.

Do you need to export assets from a level (scaled, rotated and moved) or just the original static mesh that is linked to them?

I think that you can achieve what you need with editor scripting utilities

I just want to export the fbx mesh.

You don’t even need a script as long as they are static or skeletal meshes:

  • Select all the assets you want to export in the world
  • Press CTRL+B
  • Right click one of the selected assets in content browser
  • Asset Actions → Bulk Export
  • Select a folder
  • Export all

Tell me if it works :wink:

Thanks for the help but that’s not what I am trying. I am trying to export it via c++.

Oh ok, do you need to use this function in a packaged project?
I wouldn’t be surprised if it was an editor-only function.

You could try to use IAssetTools::ExportAssets, it works in BP:

1 Like

Thank you so much. IAssetTools is exactly what I needed!

1 Like