Hello,
so when I want to call CreateDefaultSubobjects<>(), it is fine, Visual Studio finds it. The lines
CapsuleComp = CreateDefaultSubobject<UCapsuleComponent>(TEXT("CapsuleCollider"));
RootComponent = CapsuleComp;
work fine but as soon as I add
BaseMesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("BaseMesh"));
and compile it, Unreal crashes completely and doesn’t even show the dialog, it is just gone. When I attempt to reopen the project, Unreal stops at 75 % and just closes again.
When I remove the BaseMesh line and recompile, Unreal starts to open again.
Why and how to fix?