Skip to content

Type conversion

String to int

cpp
FCString::Atoi(*MyFstringValue)

String to float

cpp
FCString::Atof(*MyFstringValue)

Int to String

cpp
FString::FromInt(MyInt)

Float to String

cpp
FString::SanitizeFloat(MyFloat)

Create UniquePtr

cpp
TUniquePtr<FMyClass> MyObject = MakeUnique<FMyClass>();

Create SharedPtr

cpp
TSharedPtr<FMyClass> MyObject = MakeShared<FMyClass>();

References