Hello, I am looking for a render texture for a rawimage texture in ugui.
I have a render texture set to Texture in rawimage in ugui. I am trying to display the camera image in the UI.
This is configured as follows.
However, this method shows objects that should not be visible.
In the screenshot above, there is a Cube and a stick behind the capsule. Since the capsule is large and close to the camera, the cube and bars should not be visible.
However, they are actually displayed in front of the capsule.
These objects are not doing anything to change the order in which the textures are displayed. Therefore, the farther away from the camera, the smaller the object appears, and objects that are between it and the camera should not be displayed.
What could be the cause of this?