PrintLine FString using variables CowBull Terminal

Hello All.
I have used C++ for console programs and have very little unreal experience. I was trying to use PrintLine and concatenate an integer variable in to my PrintLine stream. Is it correct that you must convert the variable to FString to be able to concatenate and display that variable?

you should be able to do this

PrintLine(TEXT("Your integer is: %d"), YourInteger);

I did it this way.
PrintLine(TEXT(“The word is an isogram ‘no letter is the same’ “+FString::FromInt(HiddenWord.Len())+” letters long.”));
but thank you for reminding me of PrintLine placeholders.
I was not far enough in the course.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms