官方参考 FString to bool, int, float //to bool bool MyBool = MyFString.ToBool(); //to int int MyInt = FCString::Atoi(*MyFString); //to float float MyFloat = FCString::Atof(*MyFString); float, int, bool, FVector, FVector2D, FRotator, FlinearColor, UObject to FString