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
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.
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