I have a ‘Victory screen’ canvas that I display when a game is won, which has a 3d model with an animated pose in it, hence that canvas is being rendered to a camera that has a depth pass for just that model and the UI elements. I also have a regular UI canvas that displays stuff like my player indicators and score, which currently is being rendered on top of my victory canvas. How can I make my victory canvas always render on top? Screenshot for example.
I’m pretty sure the canvas sort order is what you need here. Higher numbers go on top:
Edit: So yeah I might have dashed this answer out a bit prematurely… I take it you are looking to acheive a result like this:
Where the blue stuff is your normal UI canvas and the red stuff is your victory canvas. The canvas sort order should do the job as long as you are OK with setting the normal UI canvas to Screen Space - Camera similarly to the victory canvas.
If you attach the same camera to both canvases then the canvas sort order allows you to sort them as you’d expect. If you don’t want to use the victory camera at all until the end of the game, just attach the normal camera to the normal UI canvas and it will always be behind the victory camera regardless of the sort order (assuming the normal camera has a lower depth than the victory camera).
If you absolutely need your normal UI canvas to work as Screen Space - Overlay then I’m out of ideas.
Any Solutions yet?