# animations doesn’t work after packaging project

**URL:** <https://forums.unrealengine.com/t/animations-doesn-t-work-after-packaging-project/2670069>\
**Category:** Game Production\
**Tags:** unreal-engine, question\
**Created:** [October 30, 2025, 2:50pm UTC](https://forums.unrealengine.com/t/animations-doesn-t-work-after-packaging-project/2670069 "2025-10-30T14:50:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![U92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@U92](https://forums.unrealengine.com/u/U92)\
**Post date:** [October 30, 2025, 2:50pm UTC](https://forums.unrealengine.com/t/animations-doesn-t-work-after-packaging-project/2670069/1 "2025-10-30T14:50:02Z")

</div>

Hello , i packaged the project but the animation doesnt work ? i have just few warning

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/6/dd6b01e9d7ab78df22362ac04e4a9c0a087ee849.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/d/fed5bc0abc4704be8064d155676bcc4f2dba25b4.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/4/8d42d601d25fecf5a87866a71b5256e201e21685.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/6/b5609a186b5cd4315e0ed3dc5e02d24d0d0fc16d.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/b/12b4625f4f96f83d82c6030d86450f25d15a4062.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/c/6fcb956a19ad1e897c857946cf05bec9af2cd00e.png)  
PS:It’s c++ project not just blueprint

---

<div class="post-metadata">

**Author:** ![U92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@U92](https://forums.unrealengine.com/u/U92)\
**Post date:** [October 31, 2025, 2:11pm UTC](https://forums.unrealengine.com/t/animations-doesn-t-work-after-packaging-project/2670069/2 "2025-10-31T14:11:07Z")

</div>

Continuing the discussion from [animations doesn’t work after packaging project](https://forums.unrealengine.com/t/animations-doesn-t-work-after-packaging-project/2670069):  
i narrow the problem to  
First Person animations  
UPROPERTY(EditAnywhere, Category = Animation)  
UAnimBlueprint\* FirstPersonDefaultAnim;  
UPROPERTY(EditAnywhere, Category = Animation) UAnimBlueprint\* FirstPersonsecondaryweaponAnim;  
UPROPERTY(EditAnywhere, Category = Animation)  
UAnimBlueprint\* FirstPersonfirstweaponAnim;  
and apparently when use this GetMesh()-\>SetAnimInstanceClass(FirstPersonfirstweaponAnim-\>GeneratedClass); didnt work in shipping but works fine in editor

---

<div class="post-metadata">

**Author:** ![TrueBelkiss](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TrueBelkiss](https://forums.unrealengine.com/u/TrueBelkiss)\
**Post date:** [April 23, 2026, 8:00am UTC](https://forums.unrealengine.com/t/animations-doesn-t-work-after-packaging-project/2670069/3 "2026-04-23T08:00:48Z")

</div>

I got the same issue, turns out the type of `FirstPersonDefaultAnim` is wrong, it needs to be changed to:

`TSubclassOf<UAnimInstance> FirstPersonDefaultAnim;`

Then in the cpp, when we call `SetAnimInstanceClass`, you need to remove `→GeneratedClass` since the type is now the expected one.

Note that you’ll need to open the editor and edit the BP to set `FirstPersonDefaultAnim` to the anim, compile and save.

The cooked build should then work and have anims 🙂

PS: note I’ve used TSubclassOf which is a hard ref meaning the anim will load with the character, but the type could be set to TSoftClassPtr but then you’ll have to handle loading it manually
