From | To | Example |
---|---|---|
FName | FString |
|
FName | FText |
FName -> FText is valid in some cases, but be aware that the FNames's content will not benefit from the FText's "auto localization". |
FString | FName |
FString -> FName is dangerous as the conversion is lossy as FName's are case insensitive. |
FString | FText |
FString -> FText is valid in some cases, but be aware that the FString's content will not benefit from the FText's "auto localization". |
FText | FString |
FText -> FString is dangerous as it is a potentially lossy conversion for some languages. |
FText | FName | There is no direct conversion from FText to FName. Instead, convert to FString and then to FName. FText -> FString -> FName is dangerous as the conversion is lossy as FName's are case insensitive. |
转自官网https://docs.unrealengine.com/en-us/Programming/UnrealArchitecture/StringHandling 官网真的吊~