Search Unity

"Raycast Target" is off but button still receives click events

Discussion in 'UGUI & TextMesh Pro' started by Rodolfo-Rubens, Feb 3, 2016.

  1. Rodolfo-Rubens

    Rodolfo-Rubens

    Joined:
    Nov 17, 2012
    Posts:
    1,197
    As the title says... does someone has clue of what's happening? Is this supposed to happen?
    Also, there is not a single info about the "raycast target" in the Manual, at least I couldn't find, the Image page doesn't have that property in its list of properties.
     
  2. Rodolfo-Rubens

    Rodolfo-Rubens

    Joined:
    Nov 17, 2012
    Posts:
    1,197
    I submitted a bug report, case 767580.
     
  3. Rodolfo-Rubens

    Rodolfo-Rubens

    Joined:
    Nov 17, 2012
    Posts:
    1,197
    Ok, a UT staff guy clarified this to me, it seems like we need to disable not only the raycastTarget from the gameObject that has interaction (Button, Event Trigger, Scripts), we also need to disable all of his children's raycastTargets too if they have graphic components attached to them. I don't see a reason why they are not treated individually, but anyways, but it makes sense in a certain way.

    But I still think that these pages should be updated:
    Very little info:
    http://docs.unity3d.com/ScriptReference/UI.Graphic-raycastTarget.html

    Still no info about raycast target:
    http://docs.unity3d.com/Manual/script-Image.html
    http://docs.unity3d.com/Manual/script-Text.html
    http://docs.unity3d.com/Manual/script-RawImage.html

    Edit: A mod can add a [Fixed] to the thread title.
     
    Last edited: Mar 28, 2016
    CodingwithMegan and juanborgesv like this.