Help needed with UI Popup

Hi All, Super struggling with this…

I’m using a line trace for objects with a motion controller - when the trigger button is pressed and the red line hits the sphere I want the menu to appear

vrpawn - has the line trace but I’m not sure if its hitting the BP_Sphere a red line does appear
BP_Sphere - has on the click event to show the menu

then menu works ok and changes the material of the sphere but I can’t seem to make it appear

any help would be appreciated

kind regards




Create a blueprint interface called Interactable

Inside the blueprint interface create a function (can be called interact).

assign your interface to the sphere actor (class settings => add interface => choose “Interactable”) & implement the interact function (it will be under interfaces “Interact” in yellow)

Then from your line trace call “Interact” on the hit actor.




hi, thanks so much for the reply, I’ve followed your advice and then menu still doesn’t appear,




kind regards

hi, I added a 2d sound which seams to play which is great!! but how to make menu appear instead, my stress level has gone down :slight_smile:

Does the sphere have collision set to block traces?

It also needs to take in queries

hi, sure those options are ok, I’ve managed to spawn a sphere as well, but still no luck showing the menu

The thing is you are working in VR right?

So I don’t think you can use widgets in 2d space.

I think you need to spawn them inside of a widget component on the actor and set them to world space. Give them a size and set the widget class to the popup widget.

You probably also have to make sure the widget is rotated towards the player

This should rotate the component towards the player

thanks for this, I am feeling overwhelmed with blueprints, is there anyway I can drag the widget holder into the viewport then turn its visibility on/off using the sphere, I’m new to blueprints and want to try something more simpler

You just add the widget component to the actor and change it’s visibility (hide on begin play) and show on interact.

But take into account that the widget component doesn’t rotate by default so you may have to move around to see it floating above the sphere once activated.

hi, i’m not sure where to add the event begin play and the visibilty node to use, is it in the bp_Sphere or thw BP_Widget_Holder, sorry for not understand