FNames under the hood
I guess this is a question for someone-who-knows at Epic. But if you're already using FNames like this and it works please let me know!
If I declare FName variables in a project, and then load DataTables with fields which are FNames, into other classes, will the same FNames be given the same index etc? Can I still use comparators like == at FName speed? Presumably a conversion takes place from string to FName, when the excel spreadsheet is loaded into the project. Does that mean the engine will see two different FNames, even if they are the same string?
Internally FName uses an index into a string table. Two FNames made with the same string (ignoring case-variations as FName is case-insensitive) will generate the same string table index, which is what's used by the FName == operator to compare them.
answered Sep 12 '14 at 09:10 AM
Jamie Dale STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here