I can't get draw text to work correctly

Hi there,

I’m trying to write some text to screen for my maze map so that when the player goes the wrong way it says “wrong way” I’ve been following this tutorial:

but some of the functions don’t work as it’s obviously done in a different version of unreal than the 4.12.5 that I have.

Can you suggest an easy way to get some text up to the screen that looks nicer than the log text function.

Hey Delta1,

For something like this I would recommend using the Widget Blueprint! You have a lot of control and can create animations for the text widgets as they are displayed on screen.

  • Right click in your content browser and go down to User Interface Then select Widget Blueprint.

  • While in the Widget BP designer you can add text blocks for the messages you want to display.

  • You can change the text to get the effect you want (I created a new font type for this pic)

  • Then click the +Animation button to add an animation for the text then while the animation is selected add that specific asset. You will find the text widget in a list.

  • In this case I assumed you wanted the text to fade in so I would pick the color and opacity anim track.

You will need to play these animations in the event graph. Also note, you need to create this widget then add it to the viewport (usually on begin play). I added a few screenshots just to help out with the steps!

I hope this guides you in the right direction and I recommend checking out tutorials/documentation on the widget blueprint.

,

Firstly MASSIVELY for ALL your kind help, but I think there’s a step missing in there somewhere.

I can create the widget blueprint and the text needed ok.

But when I click the +Animation button the text widget is nowhere to be seen, once you pick colour and opacity does this need to be set up (keyframes etc).

How exactly do I create the widget then add it to the viewport? I’m trying to get it so that it works from a trigger volume.

Can I please trouble you for a step by step (for idiots such as myself) guide as to exactly what you did in your example to make it work.

Please help I’m absolutely lost!

For clarification:

I can get the text to pop up when the player steps in the trigger volume, but I want the text to disappear after the player moves away from the trigger volume, how do I do this, I cant reference the widget blueprint at all from the level BP?

Here’s the level BP Functionality:

Is there anyway to control how long the text is displayed for?

Hi . Its best solution . I try it and this is work . I use your solution then for remove widget I use it …