Using iostream library?

In this part of the licture we use the PrintLine() function to display some text in the terminal and the ClearScreen() function as well.
I was wondering why should’nt one use the std::cout method as it is done in the triple X part of the course?
After trying I can clearly see that it does not work but I do not precisely understand why?
Can somebody explain the fundamental difference between those two methods to me?

std::cout is mapped directly to the standard output. If you launched the UE4 editor through cmd, you would have seen those messages come out in that terminal window.

PrintLine on the otherhand sends that text to an array which is then displayed on a text render component in Unreal.

1 Like

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

Privacy & Terms