No announcement yet.

Widget hud text overwriting old text

  • Filter
  • Time
  • Show
Clear All
new posts

    Widget hud text overwriting old text

    I have a widget being used as a Hud. The problem is that it is putting 'default' text in the block and not clearing it when I write new text to it.
    In my player BP I create a reference to the widget in the BeginPlay event...

    Click image for larger version  Name:	Hud0.PNG Views:	1 Size:	28.9 KB ID:	1391356

    In the widget I have a text field to which I bind this function....

    Click image for larger version  Name:	Hud2.PNG Views:	1 Size:	34.0 KB ID:	1391357
    In my player BP for testing I just write to it with this....

    Click image for larger version  Name:	Hud4.PNG Views:	1 Size:	27.4 KB ID:	1391358

    and the result at run time =

    Click image for larger version  Name:	image_123588.png Views:	1 Size:	2.3 KB ID:	1391359
    Last edited by SouthBot; 11-25-2017, 08:59 AM.

    OK I think that this might be a bug. After some testing I found that in the Widget if you use a variable that is not text then the default value cannot be erased and it appears on the screen. So for my test the variable was a NAME type and it defaulted to NONE. When I wrote to it you get the result as above. If I change it to a TEXT type I can delete the default and then the problem goes away.

    Does anyone know how to write directly to a text variable without using a function in the widget. If I try write to it from a different Blueprint the text type appears as a text reference object and I have not figured out how to send text to it... any one know how?


      With a regular text widget, you can bind the text to a variable from the designer. Check for the Bind button near the box where you would enter default text.


        I had not noticed the list of properties there - thanks it works great


          Please i am currently having this problem still i have looked on many pages and i still cannot figure it out! ive tried all of this


            Hey, I have the same problem. Everything worked fine and then suddenly it started overwriting old text instead of replacing it. I had hud_text as a string variable as well, but changing it to a text variable did not help.

            Any Ideas?