What do they exactly do? I dont remember when %i %s were explained or maybe I wasn’t paying attention.
With those, you can show variables in PrintLine. %i
is for showing integers and %s
is for strings.
here is example:
int32 IntegerVariable = 20;
FString StringVariable = "Text";
PrintLine(TEXT("String: %s Integer: %i"), *StringVariable, IntegerVariable );
You need to remember *
operator when you want to use strings.
This PrintLine will print “String: Text Integer: 20”
1 Like
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.