Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    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


    Feb 14, 2016

    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.