Custom functions in button click not working after build
Hey,
I got a problem and can't find a solution.
I have 4 buttons in my main scene which are working perfectly in unity editor. But when I make a windows build they don't call the assigned functions in onClick.
One button has the default function SetActive of an element, this function works. But the functions of my own scripts are not called.
The mouse hover and click itself seems to work, because the button color changes.
EventSystem is in the canvas and there is no image with raycast target enabled infront. On my canvas are the components Canvas, Canvas Scaler and Graphic Raycaster.
Unity version is Unity2017.1.1f1.
Does someone have a idea?
Answer by Shaitan1805 · Dec 09, 2017 at 02:00 PM
I found the problem. There was a null reference exception that wasn't thrown in editor play mode only after build >.<
Thanks to all who read this question and thinked about it