Search Unity

Canvas Group with Blocks Raycast Doesn't effect onMouseUp?

Discussion in 'UGUI & TextMesh Pro' started by IK, Jun 23, 2016.

  1. IK

    IK

    Joined:
    Oct 29, 2012
    Posts:
    34
    I've got a panel with a canvas group that has "blocks raycasts" selected but doesn't stop an onMouseUp event on a sprite's collider behind it. Is there another step I need to take to get raycasts to be blocked by this canvas element or am I entirely misunderstanding how these two things should work together?

    Edit: This issue remains switching onMouseUp to other onMouse events.
     
    Last edited: Jun 23, 2016
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,187
    IK likes this.
  3. IK

    IK

    Joined:
    Oct 29, 2012
    Posts:
    34
    Thanks! I just tested it with a variety of other onMouse events but nothing changed. onMouse events seem to involve raycasts if I am understanding the docs correctly, right?
     
  4. IK

    IK

    Joined:
    Oct 29, 2012
    Posts:
    34
    I've been able to find a work around but I am still curious as to why this doesn't work. Could anyone could shed some light on how these are supposed to work?