#I have two canvases.There is one camera rendering a 3D scene.One canvas is for the UI and shou

1 messages · Page 1 of 1 (latest)

sacred veldt
#

I have two canvases.

There is one camera rendering a 3D scene.

One canvas is for the UI and should always be on top.

The 3D scene should be displayed underneath the UI, with a transparent background.

The other canvas is a background image that should always appear behind everything else.

In this setup, how should I configure it?
I have set the Sorting Layer/Order for the canvases to 20 and 10, but I don’t know how to configure the camera.

lyric ore
#

Sorting layer/order have no effect on 3D, only work relative to sprite renderers and other 2D components

#

Canvases can affect their render depth by using render mode "world space", or "screen space - camera" and adjusting Plane Distance

#

For what you are asking screen space - camera and a high plane distance are the way to make a canvas appear in the distance behind 3D objects, while retaining screen space scaling which a world space canvas would not do

sacred veldt
#

hmm i will try now