What am I missing guys… I have managed to get the DrawHUD to run repeatedly:
AMainHUD::AMainHUD(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
Points = PCIP.CreateDefaultSubobject<UHUDElementComponent>(this, TEXT("HUDElementComponent"));
ConstructorHelpers::FObjectFinder<UFont> FontObject(TEXT("Font'/Game/Fonts/PointsFont.PointsFont"));
if (FontObject.Object)
{
Points ->Font = FontObject.Object;
}
}
void AMainHUD::DrawHUD()
{
DrawText(TEXT("Hi"), FColor(100, 100, 100, 0), 200.0f, 200.0f, NULL, 1.0f, false);
}
but the DrawText is not drawing to the screen… What might I be doing wrong?
My GameMode has AMainHUD defined as its class and I guess that’s working because it is correctly running the DrawHUD event