How to use BP arrow compoent's CustomDepth?

80262-ab1.jpg

Please look ab1.jpg the part of the obscured which behind the table is visible.

80264-ab2.jpg

I use the arrow component in my blueprint but the arrow component’s part of the obscured is not visible as the ab2.jpg shown. I have set the “Render CustomDepth Pass” enabled.How can I let the arrow component visible like the UE4 editor’s transform widget shown in ab1.jpg?

Custom Depth means that actor will be rendered into a separate depth buffer, it doesn’t disable the depth test. If you want to have an object always on top you can either:

  • use the custom depth + post processing material that will always render it on top (you can access custom depth node there to check)
  • use material set to Translucent with Disable Depth Test option selected