Can you make viewport be in front of meshes so it doesn't go through a wall

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Deith

enter image description here
In the picture the red line shows rest of the dialogue window/box

I have a viewport based dialogue window popping up above player when interacting with stuff. But when I’m close to a wall, it goes through it. The simplies solution would be to make it render in front of everything I just don’t know how to do it.

Other solution would be moving the dialogue box away from a wall as player gets close to it, but I have even less of an idea how to do that. Kind of like this:
enter image description here

:bust_in_silhouette: Reply From: Deith

Ok found the rendering solution - in material > flags > checked no depth test, also setting render priority to 1 fixes additional issue if there’s a transparent material on screen.