Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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,221
    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,221
    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.