I have world space canvases and I want them to be rendered over anything in the scene.
I have looked online and tried using a second camera that only renders the UI elements and applies that output onto a render texture. I tried overlaying that render texture over my main camera that does not render the UI elements, but I am not sure how to do that.
The second method I tried was to create a shader for the UI elements that always renders first. I made a shader that had Zwrite off and Ztest always on. Maybe I had something wrong with the shader but I applied it to the UI elements and that did not seem to work either.
Do you have any ideas on how to do this?
Okay but but then how do I merge the output of both cameras? I have never done anything with Cameras in unity with to this level, I would greatly appreciate it if you described the steps necessary to achieve this.
– NoWayMan112