FName should use TEXT macro

Small nitpick, but I noticed in the video when calling CreateDefaultSubobject an FName with a String was passed in, but that String was not wrapped in a TEXT macro.

Seems like it’s best practice to never create a String without wrapping it in a TEXT macro - I assume it might cause issues with certain UTF8 characters or something, but I don’t really know, I just accept it.

1 Like

It shouldn’t be too much of a problem but it does seem worth mentioning. The reason why you should use the TEXT macro whenever using a string literal is as follows

@ben, thoughts?

Privacy & Terms