Hi, I’m very new to unreal and I’m having trouble with getting text to disappear when I leave a trigger box. If anyone could help me that would be great
You shouldn’t create the widget in the overlap function. Every time you enter it’s creating a new widget. This might be your issue. Create it on begin play and then use a reference to set the visibility when you enter and leave the volume.
It is quite possible that the On Actor Begin Overlap triggers multiple times, adding several widgets to the screen. When the End overlap triggers, only the very last known reference stored by the IWbuilding variable is removed. Place a Print String node after Add to Viewport - every time you see it, a brand new widget is created.
To fix this and only have a single widget active at any time, consider scripting something along the lines of:
Untested but should work.