Hide a blueprint widget if there is an obstacle between the camera and the widget

Hi!

I’m using a blueprint widget to show the players’ name above their head, but I have a problem:

I can see the other player’s name (Client) through the walls.

Is there any way to hide it if there is an obstacle between the camera and the blueprint widget?

Thanks!