Right now my code looks like this.
// Header
class UPawnSensingComponent* PawnSensor;
// This compiles fine until I add the below in the CPP
PawnSensor = CreateDefaultSubobject<UPawnSensingComponent>(TEXT("PawnSensor"));
It keeps giving me unresolved externals errors which makes me think there is some other step I am missing, but I can’t for the life of me find it. At first I thought I needed to use SetupAttachment, but no such definition exists within the UPawnSensingComponent.
Does anyone know what I can do?