And how do I go about using Create Widget with that?
both
MainHUD = CreateWidget(GetWorld(), HUD);
and
MainHUD = CreateWidget(GetWorld(), HUD.Object); result in compile failed with the reason being
Doesn’t matter if i use this
static ConstructorHelpers::FObjectFinder HUD(TEXT(“WidgetBlueprint’/Game/HUDs/MainUI_HUD.MainUI_HUD’”));
or
static ConstructorHelpers::FObjectFinder HUD(TEXT("/Game/HUDs/MainUI_HUD"));