Why do certain FNames get capitalized in packaged builds?
I have the following code:
In the editor I see expected output:
But in packaged builds I find certain names unexpectedly capitalized:
This is causing me trouble in other projects where I convert FNames to char* for comparison purposes. I know that FNames are case insensitive, so is there something unsafe about using them in this manor?
You can find the project that generates this output
Update 5/1/2018: Removed project hosting.
The case of an FName depends on the first instance that is created with that unique (case-insensitive) string. If you create the FName for "x" and other packages (or code) uses the FName "X", whether the x is uppercase or lowercase will depend upon which of those is encountered first by the engine. You can not change this behavior so make sure that all uses of the string treat the FName as case-insensitive.
answered Feb 24 '18 at 02:04 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here