How to hide a widget behind objects.

You could get the world location of the widget then line trace to the player character’s camera (with the render still on screen if you want to). If it connects, set the visibility of the widget to true, if not set visibility to false.