I’ve been trying for a while to get a USphereComponent to attach to my root component.
Every time I start the game I’m told there’s a:
“Template Mismatch during attachment. Attaching instanced component to template component. Parent ‘CollisionCylinder’ Self ‘AOE’”
.h
USphereComponent* aoe;
.cpp
aoe = CreateDefaultSubobject<USphereComponent>(TEXT("AOE"));
aoe->AttachTo(RootComponent);
aoe->SetSphereRadius(1000);
What am I doing wrong?