For some reason when I build my game and click play in the main menu it just freezes, and does nothing? When I do it in the editor it works just fine though. Any idea what my problem could be, and how to fix it? Also if you would like I have the code for the PLAY button in the main menu: Code (csharp): #pragma strict var PlayUp : Texture2D; var PlayDown : Texture2D; function Start () { } function OnMouseEnter () { guiTexture.texture = PlayDown; } function OnMouseExit () { guiTexture.texture = PlayUp; } function OnMouseDown () { Application.LoadLevel("Island"); } P.S All the other buttons in the main menu work just fine.
Make sure you have all of the levels you need included in the build. The code seems fine to me though.
That shouldn't be the problem, it's in my build settings, and it works fine in-editor just not in the final build. any other ideas? Anyone? EDIT: Just tried with another scene, and it worked just fine.