How to assign text to FText in C++?

Hi, I want to set text for UI_Prefix using C++ , how to do this?

What I am trying is:

FText UI_Prefix should return text EQUIP so I can set it under the function as you can see in the blueprint it done.

    FText UI_Prefix = EQUIP; 
	InitPickup(EItemType::E_Fashion, Datas->Name, UI_Prefix, Datas->StaticMesh);
2 Likes

Simplest way is

FText UI_Prefix = FText::FromString("EQUIP");
5 Likes

Thank You for this perfect solution, You just solved my problem :slight_smile: