How to stop collider from interfering with world space canvas?

Hi all!

I have a canvas that is in world space and a normal box collider behind it. But my buttons cannot be clicked because of the collider behind the canvas (and the collider/object is definitely behind the canvas). How can I make the canvas be in front of everything including colliders?

Thanks

Mark all UI with layer UI and when raycasting specify which layers you want to hit using bit shifting. That will give you solution to raycast everything except ui or certain layers only. UI layer is already created for you in unity editor.