Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

raycast problem with 3d UI

Discussion in 'UGUI & TextMesh Pro' started by morgoth990, Aug 23, 2014.

  1. morgoth990

    morgoth990

    Joined:
    Jan 25, 2014
    Posts:
    4
    Seems that GraphicRaycaster raycast behind objects and override UI events.
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,165
    I don't understand the question, could you describe it in a bit more detail.
     
  3. morgoth990

    morgoth990

    Joined:
    Jan 25, 2014
    Posts:
    4
    the cube behind the Canvas is treated as a blocking object
     
  4. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,165
    How close are the canvas and the cube? if they are intersecting there might be an issue with precision here.
     
  5. morgoth990

    morgoth990

    Joined:
    Jan 25, 2014
    Posts:
    4
    I've tested several distances, seems that if Canvas is 1< unit near the cube, it's treated as a blocking object.