# Loading FBX files (and placing) inside a editor plugin

**URL:** <https://forums.unrealengine.com/t/loading-fbx-files-and-placing-inside-a-editor-plugin/60946>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Packaging\
**Created:** [April 12, 2016, 10:23pm UTC](https://forums.unrealengine.com/t/loading-fbx-files-and-placing-inside-a-editor-plugin/60946 "2016-04-12T22:23:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_89850c39](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_89850c39](https://forums.unrealengine.com/u/anonymous_user_89850c39)\
**Post date:** [April 12, 2016, 10:23pm UTC](https://forums.unrealengine.com/t/loading-fbx-files-and-placing-inside-a-editor-plugin/60946/1 "2016-04-12T22:23:20Z")

</div>

I think it could sound like a no-sense question since you can already import it from inside the editor itself, but I wanna to load a proper fileformat that contains somekind of scene definition and I managed already to load a texture into the editor, but I cannot figure yet how to load a .fbx file.

Also somebody could say that this question has been answered lots of times, but the questions are usually related to load fbx during runtime of the app not into the editor.

I know that if I use

```auto

UStaticMesh* UnrealMesh = NewObject<UStaticMesh>(Package, FName(_T("MY CREATED Mesh")), RF_Public);

```

I can add a void mesh to my editor resources, but how can I load a fbx file there?

Btw is there any chance to add a instance of that UStaticMesh to my current scene?

Thank you in advance, F.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_89850c39](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_89850c39](https://forums.unrealengine.com/u/anonymous_user_89850c39)\
**Post date:** [April 13, 2016, 7:21am UTC](https://forums.unrealengine.com/t/loading-fbx-files-and-placing-inside-a-editor-plugin/60946/2 "2016-04-13T07:21:06Z")

</div>

I’ll make a partial reply for my own question, how to load an fbx:

```auto

if (FModuleManager::Get().IsModuleLoaded("AssetTools"))
{
	TArray<FString> files;
	files.Add(TEXT("D:\\mybox001.fbx"));

	FString packagePath = TEXT("/Game/mytest");
	FAssetToolsModule& AssetToolsModule = FModuleManager::LoadModuleChecked<FAssetToolsModule>("AssetTools");
	TArray<UObject*> ImportedObjects = AssetToolsModule.Get().ImportAssets(files, packagePath);
}

```

Someone knows how can I place it into the scene?

Regards, F.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_89850c39](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_89850c39](https://forums.unrealengine.com/u/anonymous_user_89850c39)\
**Post date:** [April 14, 2016, 7:44am UTC](https://forums.unrealengine.com/t/loading-fbx-files-and-placing-inside-a-editor-plugin/60946/3 "2016-04-14T07:44:09Z")

</div>

More on this I’ve tried

```auto

USceneComponent* scnComponent = ConstructObject<USceneComponent>(USceneComponent::StaticClass(), ImportedObjects[0], _T("scnmybox"));
if (scnComponent)
{
	scnComponent->RegisterComponent();
}

```

But I only manage to get a crash :S
