UMG blueprint path not found when launched

hi i am getting an error when i launch to desktop but only when i launch. if i play in the editor everything works fine but i get the error CDO Constructor (class): Failed to find
WidgetBlueprint’/Game/Blueprints/Widgets/TxtIcon_UMG.TxtIcon_UMG’
i dont understand why i get this error only on launch

ABaseSItem::ABaseSItem(const FObjectInitializer& ObjectInitializer)
:Super(ObjectInitializer)
{

static ConstructorHelpers::FObjectFinder<UBlueprint> TextBlueprint(TEXT("WidgetBlueprint'/Game/Blueprints/Widgets/TxtIcon_UMG.TxtIcon_UMG'"));

}

this is really bugging me please help

I can’t guarantee this will work as I’m not at my dev machine. But try it without the “.TxtIcon_UMG” at the end of the path. Most of what I’ve worked with on the path don’t include that even though if you copy the reference from the editor it appends it on there. I haven’t used it with UMG though.

static ConstructorHelpers::FObjectFinder<UBlueprint> TextBlueprint(TEXT("WidgetBlueprint'/Game/Blueprints/Widgets/TxtIcon_UMG'"));

I tried that and i got the same same errors unfortunately. Thanks for trying.

I used the stuff below, perhaps something similar would work for you.

static ConstructorHelpers::FClassFinder<UUserWidget> hudWidgetObj (TEXT ("/Game/FirstPersonCPP/hud/mainHUDWidget"));