Worldspace objects going in front of Canvas in Screen Space - Overlay?

Hi there - I am scratching my head. I am using Unity 5.3.4F1 and have a canvas with Render Mode: “screen space - overlay” with some buttons in bottom right corner (see image below), but when the plane of certain objects intersects the front of the camera (ie. gets closer than the main camera’s near clipping plane, currently set at the minimum of 0.01) then the object goes in front of the canvas, which is supposed to be impossible, but that is what is happening.

Any ideas? I have perused the online doccos, and nothing suggests that this should be possible, and googling this finds many people trying to correct problems with Canvases in camera or world space, but I can’t seem to find anyone with the exact situation as myself.

Any thoughts?

Just an idea, Try setting the render group to UI maybe you’re rendering in the render group for the rest of the geometry ?

I’ve just discovered this in a project i’m on in 5.3.5. A solution was to remove any materials assigned to the images in my Canvas. There are some shaders you can also use (namely the UI ones) to make materials if you do need one.

Sadly I was using a mobile shader for performance reasons, which doesn’t like it :frowning:

Another solution could be to use a second camera for rendering the UI only.

Try sorting Layer

2679422--189298--QQ截图20160615170626.png