FName

The FName function is used to get an FName representation of a string or integer.

Parameters (overload #1)

This overload mimics FName::FName with the FindType param set to EFindName::FName_Add.

#TypeInformation
1stringString that you'd like to get an FName representation of
2EFindNameFinding or adding name type. It can be either FNAME_Find or FNAME_Add. Default is FNAME_Add if not explicitly supplied

Parameters (overload #2)

#TypeInformation
1integer64-bit integer representing the ComparisonIndex part that you'd like to get an FName representation of
2EFindNameFinding or adding name type. It can be either FNAME_Find or FNAME_Add. Default is FNAME_Add if not explicitly supplied

Return Value

#TypeInformation
1FNameFName corresponding to the string or ComparisonIndex, if one exists, or the "None" FName if one doesn't exist. If FNAME_Add is supplied then it adds the name if it doesn't exist

Example

local name = FName("MyName")

print(name) -- MyName