# FMassFragment class is not define ( UE 5.5 )

**URL:** <https://forums.unrealengine.com/t/fmassfragment-class-is-not-define-ue-5-5/2217002>\
**Category:** Blueprint\
**Tags:** unreal-engine, CPP, question\
**Created:** [December 13, 2024, 10:31am UTC](https://forums.unrealengine.com/t/fmassfragment-class-is-not-define-ue-5-5/2217002 "2024-12-13T10:31:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ASTROKARMA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ASTROKARMA](https://forums.unrealengine.com/u/ASTROKARMA)\
**Post date:** [December 13, 2024, 10:31am UTC](https://forums.unrealengine.com/t/fmassfragment-class-is-not-define-ue-5-5/2217002/1 "2024-12-13T10:31:06Z")

</div>

Hi, this is the code of my struct ( I’m following the tutorial available in the unreal engine youtube channel).

USTRUCT()  
struct FSimpleMovementFragment : public FMassFragment  
{  
GENERATED\_BODY()  
FVector Target;  
};

The console tell me that the struct FMassFragment is not define.  
If someone has the solution for this, I’m going to continue my research and tell if I found how to resolve this dependancy.

---

<div class="post-metadata">

**Author:** ![Extrone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/extrone/32/906554_2.png) [@Extrone](https://forums.unrealengine.com/u/Extrone)\
**Post date:** [December 13, 2024, 10:46am UTC](https://forums.unrealengine.com/t/fmassfragment-class-is-not-define-ue-5-5/2217002/2 "2024-12-13T10:46:18Z")

</div>

Did you add MassEntity to your Build.cs and include “MassEntityTypes.h” in your header file?

> **[FMassFragment | Unreal Engine 5.5 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/MassEntity/FMassFragment)**
>
> This is the base class for all lightweight fragments.

---

<div class="post-metadata">

**Author:** ![ASTROKARMA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ASTROKARMA](https://forums.unrealengine.com/u/ASTROKARMA)\
**Post date:** [December 13, 2024, 11:17am UTC](https://forums.unrealengine.com/t/fmassfragment-class-is-not-define-ue-5-5/2217002/3 "2024-12-13T11:17:08Z")

</div>

They didn’t mention it in the tutorial…

Thank you man 👍

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 12, 2025, 11:17am UTC](https://forums.unrealengine.com/t/fmassfragment-class-is-not-define-ue-5-5/2217002/4 "2025-01-12T11:17:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
