I am using Unity to build a game that is going to be used on PC and Android mobile devices. The problem I have is that when I use a UI Button, it works perfectly on mobile, but on PC and in the editor, is not working.
Why could this be happening?
I found out why this is happening. I use player preferences to store some user settings, and after I tested the app a few times on my Android device, I decided to modify the script. The previous settings remain saved after the update, so it worked on mobile devices, but on the PC it was never used so there was no previous settings to work from.