So I've made a gui button in a canvas and the OnClick() function runs a method in a script to output in the console the current selected gameobject:
And eventSys is the Event System object that the canvas is using. Now, I have another canvas (an inventory, if you will) in which you select the items (buttons) and the 'current selected gameobject' IS the item. So it does...
EventSystem Current Selected Gameobject is null on click?
And eventSys is the Event System object that the canvas is using. Now, I have another canvas (an inventory, if you will) in which you select the items (buttons) and the 'current selected gameobject' IS the item. So it does...
EventSystem Current Selected Gameobject is null on click?