Buttons Don't always work.
Re posting this because the one I just posted was on moderator approval wait for like 2 hours, idk if it will go through.
I have a math game where a question is at the top of the screen on the camera canvas and 3 answers (1 right, 2 wrong) are on a world canvas in front of a background. The answers have a buttoned child'd to each one (one has it set to the correct answer func, the other two go to a wrong answer func) and sized up properly. During Runtime the buttons randomly decide not to work sometimes. I haven't been able to find any pattern in when they don't work, it just randomly doesn't register me clicking them. I exported to mobile and it has the same problem. Note: This also happens in the editor. Nothing in the scene has any colliders on it.
Answer by Wtfn · Oct 16, 2016 at 01:40 AM
Note that I'm using Unity 4, the latest version. I have a windows xp laptop so Unity 5 doesn't run on it.
Edit: I needed to resize the text element the button was parented to because when they were randomly placed on my world canvas and enlarged over time they overlapped other buttons causing them to be unclickable.
Answer by TangoNation · Oct 16, 2016 at 01:31 AM
Does it happen when you build the game and run that? One of my projects was like this with the buttons and sliders but it worked fine when I built it and ran it.
Its because there are multiple buttons overlapping lmao. Well time to fix this.
So the actual border of the numbers are also hindering it, wonderfull.