I am not quite sure what I am doing wrong here. I have successfully set my DefaultPawnClass previously, but for some reason the HUD just won’t want to work. For some reason I can’t change it within Project Settings either.
My code as of now is
static ConstructorHelpers::FClassFinder<AHUD> HUDObject(TEXT("HUD'/Game/Blueprints/MyHUD_BP.MyHUD_BP'"));
if (HUDObject.Class != NULL)
{
HUDClass = (UClass*)HUDObject.Class;
}
I have figured out that the ClassFinder cannot find the blueprint, however I have it, I copied the path with Copy Reference just to be extra sure, plus the DefaulPawnClass has been initialised similarly …
What am I missing ? Thanks in advance.