Question by
IHaveLiverCancer · Mar 05, 2017 at 03:26 PM ·
uibutton
UI Button OnClick() Will not Trigger Function Call
I'm in the process of doing coding for a game for one of my classes. My particular problem is that I have two buttons in a particular scene that will restart the level the player just failed, or return the player to the Main Menu. This is done by calling a public function with a single Int Parameter. Now when I run the scene directly, the buttons work fine, however when the Scene is loaded after the player has actually failed, the buttons don't seem to work at all.
I've tried so many fixes I've found online to do with this, remade the buttons Selected and Unselected Force Module Activate on the EventSystem and everything else I can think of, nothing works. Any assistance would be greatly appreciated.
Comment