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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Bug Raycast Target and Block Raycasts not blocking touches to go through UI to gameplay elements

Discussion in 'Immediate Mode GUI (IMGUI)' started by SophiaKramer, Jul 26, 2022.

  1. SophiaKramer

    SophiaKramer

    Joined:
    Feb 14, 2016
    Posts:
    9
    Hello!

    I'm having a bad problem with my UI. I have all the buttons and interactions with a panel below, that uses Raycast Target, so that when the player taps on them the tap won't go behind to interact with the game. It works pretty well in the Editor, but not in the Android build (the game is only for Android). I've also tried with adding a Canvas Group and toggle Block Raycasts, to no avail.

    Can someone help me with that?

    The editor I use is the 2019.3.0f6. I tried updating to 2021.3, but then it became impossible to export any build, so I was forced to rollback.
     
unityunity