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?
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this communityI 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.