Bad performance with UI on Android?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mautar55

I made a tiny game with a menu made of Buttons and other UI elements. I exported the game several times trying stuff and reached the conclusion that the UI node have some troubles.

First: To “touch” a buton i have to touch it twice. Probably because they are inside of a panel?

Second: After i access them (the pulsed style appears), the game freezes and does nothing. I’m sure the next scene isn’t guilty as i compilled the game with that level as starting scene and works beautifully. My phone has Android 9 and the app was always made with GL2

I read somewhere about the amount of styles making the ui on android slow but nothing concise.
I would want to know what is the best option to build an ui that works both on PC and Mobile.

Here is a link to the apk (41 Mb) (it will start on the game, just die and it will take you to the main menu)

GOOGLE DRIVE LINK

Sorry for the bad english, isn’t my lang.

:bust_in_silhouette: Reply From: Calinou

First: To “touch” a buton i have to touch it twice. Probably because they are inside of a panel?

Try setting the mouse mode to “Ignore” on nodes that shouldn’t take any mouse/touch input.

Second: After i access them (the pulsed style appears), the game freezes and does nothing.

We need more information to troubleshoot this issue. Try connecting your device to your PC and enable ADB, then run adb logcat. Run the app on the phone until the project freezes, and paste the log here.