I’m having a big freaking problem for days, it is driving me nuts… I am developing a 2D game(snakes and ladders)for Android using Godot, and I am experiencing an issue where some of my UI buttons do not respond to touch on certain Android devices.
Project Information
- Version: Godot 4.6.3 stable (official)
- Programming Language: GDScript
- Target Platform: Android
- Game Type: 2D
- Orientation: Landscape
- Designed Resolution: 1280×720
For the main UI buttons, I am using the standard Godot Button node.
The main buttons on my menu include:
SettingButtonShopButtonRulesButtonCharacterButtonStartButton
I also use a TextureButton inside one of my popups.
The main scene structure is approximately:
mainmenu
├── Menu (Sprite2D)
├── SettingButton (Button)
├── ShopButton (Button)
├── RulesButton (Button)
├── Label
├── CharacterButton (Button)
├── StartButton (Button)
├── coinbutton
├── CoinLabel
├── FeatherLabel
├── Timer
└── NoFeatherPopup
├── DarkBG
├── NoFeatherCard2
└── TextureButton
The Problem
The problem is that the buttons do not respond correctly to touch on some Android devices.
I am running the game on the phones through USB Debugging / Debug over USB from Godot.
These are the test results:
| Device / Environment | Result |
|---|---|
| Running the game inside Godot on my laptop | |
| One Android phone belonging to a team member | |
| My Android phone | |
| Three other Android phones belonging to team members |
We are a team of five people. In total, the problem occurs on 4 out of 5 phones. Only one Android phone is working correctly.
Therefore, the issue does not appear to be specific to a single phone.
Settings I Have Already Checked
I checked the Inspector settings of the buttons.
For the main buttons:
Mouse Filter = Stop
Behavior = Inherited
I also have the following option enabled in Project Settings:
Emulate Touch From Mouse
Despite these settings, the problem still occurs on several Android devices.
Possible Causes
I am not sure what is causing the issue. It may be related to:
*Different screen resolutions or aspect ratios
*UI scaling, Viewport, Stretch, or Content Scale settings
*The actual clickable area or position of the Button
*Another Node overlapping the buttons
*Android touch input behavior or device-specific differences
My Questions
What should I check to identify the cause of this issue?
Is there any specific Godot 4.6.3 setting related to Button, TextureButton, touch input, Viewport/Stretch, UI scaling, or clickable areas that I should check?
Also, is there a recommended way to debug this on an Android device and see the actual clickable area of a Button and which Node is receiving the touch input?