error C4840: non-portable use of class ‘FString’ as an argument to a variadic function
Dereference the string. Instead of UE_LOG(LogTemp, Warning, TEXT("%s"), MyString); Instead do UE_LOG(LogTemp, Warning, TEXT("%s"), *MyString);
Here is what the above code is Doing:
1. Create a new string variable called MyString.
2. Set the value of MyString to “Hello World”.
3. Print the value of MyString to the console.