Hi,
I created a scene to contain my main menu. The scene contains one camera and one script. The script only contains the OnGUI() function and it works fine when I run the scene from within Unity. However, when I build and run the game, it will immediately crash.
I removed all the code in the the OnGUI() function but the game will still crash when building and running. Once I remove the function itself, the game will run.
Does anyone know why this function is causing the game to crash when running from a build?
↧