The light component is behind Image in Unity

2019-08-20 10:54发布

I have two different canvases: one for the background and one for the game scene

Principal canvas: enter image description here

Background canvas: enter image description here

I'm having this problem: If I put an object in the principal canvas, everything seems to works but If I add a light component to this object, I'll not see the light (it is like the background image is ahead the light):

Without the background canvas: without background

With the background canvas: with bg canvas

Any idea why?

(The problem is not the BGcanvas, the problem is the image component of the BGcanvas, if I disable it, I can see the light)

1条回答
Viruses.
2楼-- · 2019-08-20 11:06

Lights are 3D scene objects

UI objects are not effected by lights or scene objects because they exist in a completely different rendering path:

Screen space canvas

查看更多
登录 后发表回答