Sorting two canvas with different render mode

Hello everyone.
case:
A first canvas with render mode “Screen Space - Overlay”
one second canvas with render mode “Screen Space - Camera”

what I want is that the second canvas (Screen space - Camera) is ordered above the first canvas.

what I want is that the second canvas cover the first.

Sorry for my English . Thanks a lot!!

If i’m not misremembering what others have said, Screen Space - Overlay is always drawn after any Cameras, even the Screen Space - Camera.

1 Like

Thanks for you answer.
then there is no way to sort ???

First of all I don’t know why you have to use 2 different types of screen space. Screen Space Overlay - just like its name - will draw above everything.

If you could change both of them to Screen Space - Camera and use 2 cameras for that, with clear flags set to Depth Only and the second one has a greater depth value than the first, you can sort it

1 Like

Thanks for your answer.
Well, I have two canvas by initial ignorance.
I have to change the design of the canvas to fit these responses.
Many thanks

I know this thread is from way back back maybe someone can help me here. I’m creating an interactive map which is only a part of my whole screen. Meaning I want to zoom in on a window within a window child of the first one. I’m checking about using two canvases and two cameras. What’s the best way to do this?