🥊 Quick Strike
Let players start the next level on the first tap
Picture a player losing a round in your mobile game. The results screen fades out, the level select comes back, and they tap the next level. Nothing. They tap again. Still nothing. Your level loader is fine. The panel you just hid is still sitting over the whole screen catching every tap, because fading it out never took it out of UI hit testing. A CanvasGroup already carries the switch that fixes this, and it buys you panels you can hide and reopen in one line without touching the hierarchy.
THE HIT
Hiding a panel and disabling it are already two separate switches. On a CanvasGroup, alpha controls what the player sees and blocksRaycasts controls whether the group still counts as a target for UI raycasts. Setting blocksRaycasts to false lets taps pass straight through to the buttons underneath, so a faded panel stops competing with the screen behind it.
Source: Unity, Canvas Group manual
One line at the end of your fade hands the player their tap back. Set resultsGroup.blocksRaycasts = false; when the closing animation finishes, and set the same state when the panel initializes if it starts hidden. The player gets a level select that answers on the first try instead of the third, which is the difference between a round that continues and a session that quietly ends.
Source: Unity, CanvasGroup script reference
Restoring it before you open the modal makes the panel protect itself. Set blocksRaycasts back to true right before the results screen appears, and a tap meant for Retry can no longer leak through to the menu behind it. You get both halves of the behaviour from one flag: no dead taps when the panel is closed, no accidental ones when it is open.
Source: Unity, Canvas Group manual
DO THIS TODAY (10 minutes)
Find the full-screen overlays you hide by fading a CanvasGroup: results, pause, reward, daily bonus.
Set
blocksRaycasts = falsewhere the closing animation completes, and initialize it to false on any panel that starts hidden.Set it back to true immediately before the panel opens.
On a real phone, finish a round, dismiss the results, and tap the next level once. The button should fire. Reopen the results and tap where that button sits. Nothing behind the panel should respond.
Check the early levels first. A tap that works is the cheapest way to earn a second round.
See you Tuesday,ChurnJitsu by AppQ