简体   繁体   中英

UE4 C++ convert string to double

I want to make a server system in my Unreal Projekt. I want to download a file with all the player locations from the Server and open the file to read the lines. It's working fine to this moment. Then I have to split the lines for all the players coordinates.

I don't know how I can convert an FString into an double to create then an FVector out of the coordinates.

FString运算符*返回一个TCHAR * ,您以后可以将其与C字符串处理函数一起使用 ,例如

double my_double = FCString::Atod(*my_fstring);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM