Search Unity

Detecting objects behind gui textures?

Discussion in 'Immediate Mode GUI (IMGUI)' started by Grady Lorenzo, Mar 7, 2012.

  1. Grady Lorenzo

    Grady Lorenzo

    Joined:
    Jan 18, 2010
    Posts:
    407
    Hi, it's been awhile.

    Is there any way to get objects to check if they are behind a gui texture?

    I would like to have a crosshair, moveable with the right stick on my xbox controller (4th and 5th joystick axes, I think), and I need to find a way to use the right stick to chose a target.

    Any suggestions?