How do I fix this Built template override error Unreal 5.3.1.

Hi there. I have the MassEntityTraitBase function:
virtual void BuildTemplate(FMassEntityTemplateBuildContext& BuildContext, UWorld& World) const override;

Unfortunately when this gives me this compiler error: E1455 member function declared with ‘override’ does not override a base class

When I remove the override, the code compiles, but on play I get this error: LowLevelFatalError [File:D:\build++UE5\Sync\Engine\Plugins\Runtime\MassGameplay\Source\MassSpawner\Public\MassEntityTraitBase.h] [Line: 25] Pure virtual not implemented (UMassEntityTraitBase::BuildTemplate)

If there is a fix for this I’d love to know it.

The UWorld parameter should be const, as in

virtual void BuildTemplate(FMassEntityTemplateBuildContext& BuildContext, const UWorld& World) const 
1 Like