FName myName(TEXT("MyName"));
FName myName(TEXT("MyName")); FString nameString = myName.ToString();
FName myName(TEXT("MyName")); FName otherName(TEXT("OtherName")); if (myName == otherName) { // Do something }This code creates two FNames, "MyName" and "OtherName", and then checks if they are equal to each other. Overall, FName is a useful class for dealing with names and identifiers within Unreal Engine, and its package library is CoreUObject.