Widget BP Trigger control?

Guys I’ve put a simple widget BP together that outputs some text when the player steps on a trigger.

this first bit works fine, 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?

I’d appreciate some help guys.

Here’s the level BP Functionality:

a33fe223ab665efc8482a2f55d35d78c7a148797.jpeg

Store the ReturnValue of the CreateMyUIWidgetWidget in a variable. And plug that variable into the RemoveFromParent node.

Hi Pepeeee,

I’m an absolute amateur to this, can you please explain how to store the value as a variable?

When you create the widget before you “add to viewport” drag out the return value and promote it to a variable name it and then drag from that and “Add to viewport” . now you can use the variable you created to “Remove from viewport” whenever you want.

Thanks for that GM!

Is there anyway to get it so that the widget text only shows up for a second?

At the minute it pops up and stays up for a really long time, even though the player has turned around, as this is a game for the elderly its going to get a tad bit confusing for them to use.