FMassFragment class is not define ( UE 5.5 )

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.

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

They didn’t mention it in the tutorial…

Thank you man :+1:

1 Like

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