Search Unity

TextMesh Pro TexteMeshPro - Text | Raycast target interferes with parent Button raycast target

Discussion in 'UGUI & TextMesh Pro' started by MilloAlejo, Sep 22, 2020.

  1. MilloAlejo

    MilloAlejo

    Joined:
    Jun 17, 2017
    Posts:
    1
    Hi, i've been working on a personal project and realized after many hours trying to figure out why my buttons OnClick event wasn't working, i found that when using Buttons - TextMeshPro the "Raycast Target" option of the "TextMeshPro-Text" component interferes with the raycast target of the button, blocking it.

    I found this weird, because i thought only parent raycast targets blocks child objects raycast, but it seems that it does the same vice versa.

    I'm making this post so if someone is having the same problem they can have a possible answer in this thread and to discuss if this shouldn't happen and is a bug or it works fine like that.
     
    marioelvirp likes this.
  2. marioelvirp

    marioelvirp

    Joined:
    Jul 25, 2022
    Posts:
    1
    Have the same problem too.