This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hey!
I'm working on a tutorial for a quiz game and I created buttons and create a script that is supposed to handle the onClick event, I followed step by step with the tutorial, I created the script Quiz.cs and I added the component that has Quiz.cs connected to it as a script to run on the On Click() event and selected the functionality as well, but when I run the game and click the button nothing happens, been trying to figure out what I've done wrong since yesterday, maybe someone can help me figure out what's the problem.
Here is the link to the project:https://github.com/Taro-Naza/quiz-master
One thing I'm sure of is that the OnAnswerSelected method does not run when you click a button, so the problem must be when I set up the onClick event but I double checked and everything is set up exactly like in the tutorial
Thanks in advance and have a good day!
Update: Solved, turned out that the buttons canvas was behind the background canvas, and giving it a higher order fixed it! Thank you for the help, everyone!
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Unity2D/com...