I have a Canvas in Overlay mode in my scene and I still have to put scene objects at positive Z values to get them behind the canvas, otherwise they render on top of the canvas.
According to the Unity Manual, a Canvas in Screen Space - Overlay mode should render on top of scene elements. Is this strictly true, or are there other conditions to meet for this to hold?
Should render on top, not to say stranger things don’t happen. I have not experienced any issues with an overlay canvas not being on top. What scene objects are not appearing behind the canvas?
Oh, wait a minute… I think I understand what is happening. The object that is not on top is a child of the canvas, but not a UI element. It was instantiated by dragging an image from the Project pane onto the Canvas and is using a Sprite Renderer, not the canvas renderer.
Does that sound about right?
2 Likes