I would assume it’s because the name “RootComponent” is already being used by the… RootComponent.
Try this instead:
RootComponent = CreateDefaultSubobject<USceneComponent>(TEXT("Root"));
I would assume it’s because the name “RootComponent” is already being used by the… RootComponent.
Try this instead:
RootComponent = CreateDefaultSubobject<USceneComponent>(TEXT("Root"));