- Home /
My GUI stopped working?
Okay I bought this asset online so I would like not to show the whole script. The problem is this asset stopped working when I updated from unity 5.0 to 5.1.2. The script is for a controller GUI interface but it seems to be giving me an error :
NullReferenceException: Object reference not set to an instance of an object UnityEngine.UI.Selectable.Select ()
on this line of code :
selectedOject.GetComponent<Button> ().Select ();
so there is a null reference and its no longer recognizing the child objects as buttons is what I'm assuming
if you want to have a better look at his set up he has a short video On youtube : HERE
I would like to continue to use this script and continue updating Unity.
Answer by imilanspinka · Aug 05, 2015 at 08:44 PM
After you have solved it, you can accept THIS answer! :)
Answer by ryno9788 · Aug 05, 2015 at 08:14 PM
Okay I was way off turns out the problem had nothing to do with the update at all. Apparently I deleted the event system that ran with this. So its working again