I have a canvas with a button that appears when the player passes the finish line. However the button doesnt work. I have read through many other forums about a button not working, but none of them have worked for me. I have an event system, and a graphics raycaster on my canvas. I have another canvas that displays the time while the person is still playing. However my script disables that canvas and enables the one with the button when the player passes the finish line. Any responses are appreciated. i also disable my camera when the player passes the finish line.
Button doesn't work? Can you be a little more descriptive? Is the button visible? Does the button respond to the mouse pointer moving over it? Does it tint on the click? One thing to check if to put a Debug.Log in the method the button is calling. That way you can see if the problem is in the button or in the code.
Also, if you select the EventSystem in the Hierarchy and then watch it in the Inspector while you test your game, you can get all sorts of interesting information about where the events are going.
The button shows up, it changes color when its clicked, and when the mouse is hovered over it. I will try the debug log.
Yep, that gave me such a headache for such an easy fix. Thank you for your response! Your suggestion to look at the event system was interesting.