Android Build stops at 'Compiling Scripts'

Heya
I’m trying to deploy my game to my Nexus 6 to test it. However whenever I press ‘Build’ or ‘Build and Run’, it gets to ‘Compiling Scripts’, then the window closes and nothing happens.
I’ve looked into it, but this isn’t an issue with Unity freezing, it just won’t compile.
Any suggestions?

Thanks, I did no know that it was normal that the editor was not showing the event properly. I'll test that when @home

Ok... I feel stupid... The script originally posted worked... I just had an on mouse click event to toggle the pannel with the buttons depending on what GO the raycast hit. I thought that even if the raycast would cause the panel (and thus the buttons) to disapear would occur but that the click event on the button would still trigger. Turns out it does not... I thus just changed the click to show the panel on the right click, leaving the left click to interact with the buttons, undisturbed by my stupidity... Thanks again for your help!

1 Answer

1

Check the editor’s console. It’s probably a conditional compilation or API difference generating an error in your scripts. It may also be a plugin that you’re using but doesn’t include an Android version. Note that when compiling for the actual device, the UNITY_EDITOR symbol is not defined.