What do I do for context in the DrawText Node?

Ok so i’m gonna ask here because AnswerHub people decided not to answer my question. I want to print text for my game using Draw Text in my widget BP however I;m getting this error. Can someone tell me what to put for context? Thank you!

91274-capture.png

When inside UMG (you said widget BP so i assume you are inside UMG) you use widgets to Display your stuff. Draw… Something are usually used inside HUD Classes. The context is a reference to the viewport its should display text on. I guess it would expect a HUD or Viewport or something.

So either you move your stuff inside a HUD Blueprint or you use the Text Widget of UMG to Display your text.

kind regards

Googled this…

https://answers.unrealengine.com/questions/111651/what-is-the-context-in-drawtext-node.html

I can’t use the HUD BP and I’m making a widget so that when a user clicks a button text pops up in the screen and then disappears. They press it again and it pops up again and then disappears and I was hoping using the draw text node to trigger that will help.

That doesn’t help because i’m not using HUD BP.

Why dont you use a text widget???

Ya but I don’t want the text to be visible in the menu. I want it to invisible, but then become visible when a button is pushed. I dont km mow how to do that. Thats why i went to draw text.

Well obviously the “Draw Text” doesn’t help you without a HUD so you better learn how to change the visibility of a text widget…

Ya I already figured that out m8. That’s what i want help in. Changing the visibility of the text.