How to ignore click on game object for clicking world scale canvas UI

Hi, I am working on a project where I am using world-scale canvas. I have an inventory there, now I want to click on the inventory buttons to do something but the problem is when I have some elements in front of the UI. As the elements have colliders, I can’t click past through the game objects.

Can anyone please help me to solve this?

A few random possible options:

  • remove the colliders from those blocking objects

  • use layering to ignore certain items

  • use some other decorator script to either identify what you DO want to click on, or identify (and ignore) what you DON’T want to click on

  • use RaycastAll to get everything you clicked on and decide what is “real”

  • ?? plenty of other choices