Quantcast
Channel: Questions in topic: "build"
Viewing all articles
Browse latest Browse all 4084

OnGUI() crashes when running from build

$
0
0
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?

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>