Help! Unity does not include all of my UI elements in the apk file! [SOLVED]
Yesterday, I had some problems with Unity not wanting to build my .apk file in gradle, but I got that resolved by restarting the computer. Then I went on to add a couple of features to my game, and when i built it into an .apk file, and installed it on my phone, the features ("Pause" and "Reset player position" buttons) did not show in the app. I added a keybind to use the pause function in the same script, and when i connect my keyboard to the phone, and press that key, it pauses the game, but buttons stay invisible. I don't know what could be the problem as I added these buttons to the same canvas i use my joysticks on, and joysticks seem to work just fine. Buttons do show on the computer and everything runs fine when i play the game on my computer, or when i use Unity Remote 5! Help!
Answer by petar1000 · Jan 05, 2019 at 08:24 AM
Hey guys, i managed to fix it myself!
I selected my buttons in inspector, went under the Button(script), and changed "Navigation" from "Automatic" to "None"
Your answer
Follow this Question
Related Questions
In-game counter stops counting when game is built? 1 Answer
Unity build stuck at 3/11 4 jobs 0 Answers
ERROR_ALREADY_EXISTS 0 Answers
Build Problems Please help 3 Answers
Maddening error when trying to add Google Leaderboards 0 Answers