[UE4]FString常用API
2021-05-04 03:29
标签:rom har col nbsp count 常用 ext 字符串截取 ring 转自:http://aigo.iteye.com/blog/2279808 将int或float转换为string: 将FString转换为char*: 将string转换为int或者float: 字符串切割: 字符串截取: [UE4]FString常用API 标签:rom har col nbsp count 常用 ext 字符串截取 ring 原文地址:http://www.cnblogs.com/sevenyuan/p/7728152.htmlFString NewString = FString::FromInt(YourInt);
FString VeryCleanString = FString::SanitizeFloat(YourFloat); FString s;
char *c = *s;
FString TheString = "123.021";
int32 MyShinyNewInt = FCString::Atoi(*TheString);
float MyShinyNewFloat = FCString::Atof(*TheString);
FString a("1,2,3");
TArray
FString::Left(int count);
FString::Right(int count);