Canvas going through things

The canvas type is screen space - camera, and I have a panel in it that’s going through terrain as if it’s world space!!! Is there anything I can do to fix this? I need it to be camera so I can use OnClick!

I think it will, add another camera and set it as follows:


NOTE: Depth Only = V important, Culling Mask only has UI ticked, I used othographic but perspective is fine as well and essential if you want make a panel rotate into the scene or look 3D.

The Depth is 0 but the main Camera that follows the test player around is at depth -1 so this is the highest camera. I also limited the Near and Far Clipping Planes.

Now set the Canvas up like this:


You should be OK with that. Of course that’s just a rough guess at what you want.