Use CreateDefaultSubobject only in the constructor
Mesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Write here the component name"));
Use CreateDefaultSubobject only in the constructor
Mesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Write here the component name"));