Interaction on collapsed/hidden widget switcher

Hi all,

So i am trying to create a 3D main menu using a widget interaction. When I call the main menu, it shows buttons like Start, Options, etc. When I press e.g. Options a widget switcher gets called and another panel from the same widget gets visible next to the main menu panel.

The thing is that I have created a beam interaction for the widget. The beam disappears when i dont point on the widget. Now when I hide my widget switcher, the beam still appears where the widget switcher panel was visible as if it is still there.

Is there a way to destroy and spawn the widget switcher, so that my beam doesnt interact with the hidden/collapsed widget switcher?
Or might the problem be within my beam interaction code, that i only create a beam when a widget switcher is actually visible? Is that even possible?
Or could the best solution be, to create two different widgets, one for the main menu and one for the options?

Thanks in advance for any suggestions!

If you want to destroy and create the widget interaction, you can get the widget interaction component and call DestroyComponent. To create again, AddWidgetInteractionComponent. I assume your problem might be caused by how you handled the beam code not the widget itself because when a widget is hidden or collapsed you can’t interact with it.

Thats what i thought too that if it is collapsed or hidden i cannot interact with it. The problem is that I only want the Right_widget switcher to be collapsed not the entire widget. The beam however reacts as if the right_widget_switcher was still there.
Here is the widget and my interaction beam.

I’m not sure about the beam code : the reason for casting to BP Ingame Menu and Is Over Hit Test Visible Widget. Also try Camera on Trace Channel instead of Visibility as you’re playing with the widget visibility. Else, you can separate LineTrace and store results on variables as the conditions to Trace are confusing.