Is there an event for when a widget enters the screen space

When an actor’s widget component is set to screen space the tick is active when on screen and stops when the widget is no longer on the screen. This is how I want it so the tick isn’t running when the widget is not on screen.

Is there an event or a way to trigger when the widget enters the screen (like what ever is triggering the tick to activated/deactivated)?

What I want is when the widget enters the screen for an event to fire so it will update any info that happened when the widget was off screen. I can achieve this with the tick or bindings, but I’m trying to optimize away from per frame changes on some things.

Hi
If I’m not mistaken, the Event Construct in the widget blueprint fires when the widget is added to viewport. There is an Event Destruct too which fires when the widget is removed from the viewport

Thanks for the reply

You are correct, when the actor is spawned, the Event Construct runs on the widget component. However when it goes “off screen” and then reappears onscreen it does not fire the event again. I know it is recalled if the widget is removed from the viewport and then re-added.

Note: the widget component is a health bar above the character set to screen space.