Download

Difference between FName(TEXT("ABC")) and FName("ABC")

Headline says it all :slight_smile: Is there some minor performance difference or something like that? Which one do you use ?

Thanks

Check out this thread for detailed answer about TEXT macro, as for text performance/optimization you might be interested in this AH thread

Thank you for answer, first link is probably more relevant. So it just about possible Unicode characters in string, that’s cool. I can probably omit it in some situations to make code more readable.

All TEXT(“blah”) does is replace it with L"blah". It makes sense to do that because otherwise it’ll convert the string at runtime, at least that’s what I’ve been told.
Haven’t yet checked if it actually causes any difference in the assembly