Search Unity

How can I block cursor interaction

Discussion in 'VR' started by stefanob, Dec 6, 2017.

  1. stefanob

    stefanob

    Joined:
    Nov 26, 2012
    Posts:
    68
    Hello,

    I set up a custom cursor which starts filling a little circle when the focus is on a button. When the circle is full, a Plane appears between the camera and the button.
    When the overlay is open, the button is still interacting. I would like to "block" the cursor, when it is behind another object/collider. Is that possible in an easy way or do I have to implement my own logic here.

    Thanks!