How can I display widget above an item?

I’m trying to figure out the best way to display this widget above the object its attached to. Right now, it gets displayed where the scene root is. I was looking into maybe getting the world location of the scene root and adding to the Y axis to display the widget higher. But I know its not that simple. Or if it is, probably wouldnt be the best way.

The ‘Get Interaction Text Attach’ function returns the scene root of the ItemBP.

This is inside the PlayerBP and deals with overlapping the Item Collision

I’m pulling the Blueprint from [this tutorial][5] if anyone was wondering.

Right after posting this it hit me that I could just add another scene object and replace the ‘default scene root’ with the new scene object.

344532-ab5.png

I set the Z axis of the new scene object to 100 to give it the lift

344533-ab6.png

344534-ab7.png

Still unsure if this is the best way. I planned on using the base ItemBP for doors and pretty much any item in the game, some that may not need the height. I could always create a different base BP to use for the other objects but thats a problem for another time. But If anyone knows of a different way I’d love to hear it.

How about?

1 Like