Toggle 3D widget visibility with button

Hello! I’m still quite new to UE, but I’m trying to create simple pop-up information boxes attached to a physical point for a VR game. I can get the popup to open and close when clicking on the point marker (in this case a sphere), but would like to use the actual close button to close it too, but just can’t get the button to work. Here’s the setup:



How do I call the button from the ‘Popup’ widget class in the ‘Popup Widget 3D’ widget that’s a child of the Sphere_Blueprint?

I’ve looking into casting but I think I just don’t understand it well enough to get it to work.

Thanks in advance!

1 Like

In the ‘button clicked’ action, do

getactorofclass( sphere blueprint )

and call the close event :slight_smile:

  • whenever button19 is clicked, the event in the custom event in this actor executes.

  • ensure the button is flagged as variable:

image

  • to assign with ease and fewer clicks: