scrips not working after build
The game runs fine in the editor test but once built they no longer work. I cant click on a button or use a .getbutton to run the script. the only changes made before this happened was in a further scan from the start menu. the latest install of 5.3.4f1 did fix some issues I had for a day which I then ran into this problem.
Try building a dev build so that you can see if any exceptions are being thrown
I get
NullReferenceException: Object reference not set to an instance of an object
I take it that its not building the scrips but why?
Answer by JigneshKoradiya · Apr 07, 2016 at 05:26 AM
if you are using Unity UI for buttons than please find the "EventSystem" object from hierarchy and check in inspector touch input module is on that object or not.
its not on there I added it and tired still same result. please not that I also am using the input.getbutton("Submit") to call the same script button and nothing happens when built but dose work in the test mode. I have tried building in both windows standalone and android. the buttons did work for the last 2 months or so.
Answer by arczmaster · Apr 08, 2016 at 04:02 AM
That was not intelligent of me...lol some how I removed my button sound from the control script...lol its working now.