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.
  2. Dismiss Notice

Propagate touch under UI buttons

Discussion in 'Scripting' started by Virtumonde, Jan 21, 2021.

  1. Virtumonde

    Virtumonde

    Joined:
    Apr 15, 2020
    Posts:
    84
    Hi! I have a scenario when I want to be able to touch a button (and therefore activate it) but also control the (first person) look position via touch. I am not able to do so because the touch propagation is stopped after touching a button. As of Unity 2020.2, the touch is not propagated under buttons but I think it used to do so in previous versions. Is there a way to make touches propagate as in the older versions?
     
    Last edited: Jan 22, 2021
  2. Virtumonde

    Virtumonde

    Joined:
    Apr 15, 2020
    Posts:
    84
    Bump
     
    Last edited: Jan 22, 2021
  3. Virtumonde

    Virtumonde

    Joined:
    Apr 15, 2020
    Posts:
    84
    Disabling the Raycast Target option in the Image component achieves the desired effect (so far).