Why is my FMassActorFragment always a nullptr ?

Hello,
I started learning ECS and Unreal Engine Mass one month ago, I think that I have understand many things already. But my main problem remain unsolve, I would like find a way to get the actor attached ( by the mass agent component ). I tried many ways but at the end I my FMassActorFragment remain as a “nullptr”. Here’s my code :

Any solution, why is my Fragment not finding the Actor associated ?

This is something that hasn’t been put into the documentation.

But if you reference the header and .cpp files of MassAgentTraits.

They all have the code in common in their BuildTemplate(FMassEntityTemplateBuildContext& BuildContext, const UWorld& World) functions:

Found in the UMassAgentOrientationSyncTrait in MassAgentTraits:

BuildContext.AddTranslator<UMassCharacterOrientationToActorTranslator>();

For some reason, adding this one line of code makes it so that MASS recognises the actors they spawn.

And automatically sets the FMassActorFragment with the actor you spawn, making it possible to edit the values within said Actors such as Transforms for setting location with data from MASS>

Hope this helps.