I’m getting this error with my custom actor.
“Template Mismatch during attachment. Attaching instanced component to template component. Parent ‘CustomRootComp’ Self ‘CustomRootComp’”
This is what the constructor looks like. What am I doing wrong?
AMyThing::AMyThing( const FObjectInitializer& ObjectInitializer )
: Super( ObjectInitializer )
{
TranslationComp = ObjectInitializer.CreateDefaultSubobject<USceneComponent>( this, TEXT( "CustomRootComp" ) );
TranslationComp->Mobility = EComponentMobility::Movable;
RootComponent = TranslationComp;
}