Wrong answers on buttons

For some reason the Quiz Script loads the wrong answers on the buttons, i have provided a video that shows what is happening, shows the correct answers to the questions and shows you the entire code in the quiz script and QuestionSO script!
Any help appreciated
Thanks in advanced!

Hi iHush,

Have you already tried to log the “index” associated with the button into your console? In each Button component (in the OnClick() field), we defined an integer. This integer gets compared to the “correct answer index”, so it makes sense to check what value the respective buttons send during runtime.

i know i probably should have just troubleshooted as its good to get that experience but i copied the teachers code and it started working. Probably the last time ill do that just so i get the experience! Thanks.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms