# 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:** 1\
**Showing post:** 3

<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

---

_[View the full topic](https://forums.unrealengine.com/t/animations-doesn-t-work-after-packaging-project/2670069)._
