UE4 stacking text

Hello I’ve made a widget that is just text. I use this widget to do many things like displaying location text or saying you’ve learned a new crafting recipe etc. Now the downside to this widget is it only displays 1 line at time. Here’s a video show what I mean Hud Text - YouTube. So am trying do is if am displaying more than 1 line at a time line 1 would get pushed down by line 2 the line 2 by line 3 and so on. I just amusing would put all incoming lines in some sort of array I just don’t know how to go about it.

  • you can use an [array][1] of text, for each entry in an array add a custom widget (to a vertical box, perhaps) representing a text entry - like the bullet point list I’m writing this in - every bullet would be a separate custom widget

  • alternatively, you can hit shift+enter in a text box to add more lines:

255677-cap2.png

  • or you can format text using FormatText node where shift+enter would create a new line

255676-capture.png

  • there are also Multi-line variants of Text Box and Editable Text which support many lines of text natively

All four will work albeit slightly differently - depends on what you’re trying to achieve. Pick your poison or provide more detailed info :slight_smile:

I don’t know what to look for in that video. You have some text in the upper right, line of text in the top-centre, an UMG inventory and wave your cursor in the middle of nothing. Generic answer below as I’m not sure I understood you right.

Okay after reading your suggestions I got a few Ideas and it’s working perfectly now. What I was trying to do was nicely fade in new lines of text. In my text widget so what I did inside the text widget was make animation for fading in and out.

Then in my main hud element I created a custom event that created the screen widget inside a vertical box.

Then I made a macro library so I can call this text anywhere.

if you.make.the text block fixed width you can make it Auto wrap