Hiding a Screen Space Widget

Hello everyone,

I’m making a spaceship game, and there is a reticle to show where your ship fires. The widget is attached to the ship’s blueprint class. Here’s the problem: I need the reticle to render on top of everything except the player’s ship, but when you move around, it goes over the ship. Setting it to world space sort of fixes this, but then, other things also hide the reticle, even though it should be on top (it also looks infinitely worse in world space). I’ve tried all sorts of things with CustomDepth and stencils, but those don’t appear to affect screen space widgets. Any ideas?

Not perfect, but you could do a line cast that only collides with the ship, from the camera, to where the reticle would be if it was in world space, and then hide the widget based on that.

I considered that, but that would hide the entire widget, not just the part obscured by the ship

Could you render it on a plane the other side of the window?