Best way to show text on-screen

Hey,

I was wondering which method would be best for placing text on screen, which can not only be manipulated aesthetically (font, size, placement), but also functiuonally (‘if’ statement, actoroverlap on trigger, follows actor’s mouse like in Blueprint office etc.)

I know there’s the ‘Print String’ node but that’s very limited in terms of aesthetics.

Any suggestions?

The best way to do this in blueprint is using the “Draw Text” Node.
You’ll find that it is quite versatile, and can support most of the functionality that you desire.

The target of the Draw Text node is a HUD, so make sure you’re getting the correct reference to your HUD (You can do this by getting the PlayerController, and calling the function GetHUD).

Hope this helps.

try DrawText component on any actor
or make a HUD blueprint with DrawText in that (or DrawTexture if you want to non-dynamic but possibly prettier text)

Here’s an example

Note - you have to import a font, ie AdobeGothic by RMB in the content browser — choose Font in Materials And Textures section, or just use the default font ‘Robotica something something’.