Convert FString to int32

A bit of a stupid question, but how do you convert from an FString (that consists of just an integer) to an int32 using the Unreal libraries?
I’ve looked through the FString docs, and searched for forum posts (found plenty asking how to go the other way, but none for what I need).
Thanks!

1 Like

FCString::Atoi()

4 Likes

Thanks for the reply! I couldn’t find any documentation on that, though, and I ended up finding UKismetStringLibrary::Conv_StringToInt() by looking at which function the Blueprint conversion used. I’ll take a look at FCString (and also apparently there’s a TCString::Atoi() as well) though, since it may be better.

2 Likes

FCString::Atoi(*stringvar)