# UEditorEngine::ImportFbxAnimation loads empty animation

**URL:** <https://forums.unrealengine.com/t/ueditorengine-importfbxanimation-loads-empty-animation/837300>\
**Category:** C++\
**Tags:** unreal-engine, editor, CPP, question\
**Created:** [April 1, 2023, 2:05pm UTC](https://forums.unrealengine.com/t/ueditorengine-importfbxanimation-loads-empty-animation/837300 "2023-04-01T14:05:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Pav](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mike\_Pav](https://forums.unrealengine.com/u/Mike_Pav)\
**Post date:** [April 1, 2023, 2:05pm UTC](https://forums.unrealengine.com/t/ueditorengine-importfbxanimation-loads-empty-animation/837300/1 "2023-04-01T14:05:04Z")

</div>

Hello i am trying to load an animation from an .fbx file (automated, without using any UI)  
I found this function

> UEditorEngine::ImportFbxAnimation

which successfully creates the animation but its empty!

Check this code:

```auto
//suppose a skeleton attached (which is exactly the same with the fbx loaded.
USkeleton* MySkeleton;
FName AssetName = FName("Created_Anim");
FString PackageName = FString("/Game/Anim");
UPackage* Package = CreatePackage(nullptr, *PackageName);
FString FileName = FString("C:/Users/Mike/Downloads/input.fbx");

UFbxAnimSequenceImportData* Data = NewObject<UFbxAnimSequenceImportData>();

UAnimSequence* NewAnim = UEditorEngine::ImportFbxAnimation(MySkeleton, Package, Data, *FileName, *(AssetName.ToString()), false);

NewAnim->MarkPackageDirty();
ULevel::LevelDirtiedEvent.Broadcast();
NewAnim->PostEditChange();

```

any thoughts?
