I’m trying to use:
Cast<UStaticMesh>(StaticLoadObject(UStaticMesh::StaticClass(), NULL, TEXT("StaticMesh'/Game/Environment/Floor/StaticMeshes/Hex_Water.Hex_Water'")))
and I have an array of FStrings of the file locations for all the uassets in that folder. I would like plug the FString information into the spot where it’s asking for the directory location :
TEXT("StaticMesh'/Game/Environment/Floor/StaticMeshes/Hex_Water.Hex_Water'")
But when I try to I get an error saying I cannot convert FString to const TCHAR *
I tried FText::FromString(output[0])
but it then says can’t convert from FText to TCHAR *.