Space bar stopped working in the editor

Hi folks,

New user here, slowly getting the hang of Unity Pro 2.6 on Windows XP. I had a project working well and needed to build a standalone exe as a demo. About halfway through the process I get the error seen in the image below. I clicked cancel, the build process kept going and the resulting executable works fine.

Back in the editor, it’s a different story however. I’ve got a script on the main camera that normally pauses the game when the user hits space and loads a map scene; pressing the space bar again brings the user back to the main scene. This setup was working fine until I built the standalone. Now, while hitting space does stop the camera from moving in X,Y and Z, the map scene does not load and the mouse look script stays active. Note that I didn’t change anything in any script before building the original exe file.

This error only happens in the editor. I built another standalone that works fine as does a web player version. I’ve tried writing a new script that uses the space bar to display a GUI button, but that doesn’t work either. All other keyboard input seems to work fine.

I’ve checked the input settings but other than that, I’m stumped. Does anyone have any idea what’s going on? Thanks.

262059--9419--$unity_error_167.jpg

Update: It looks like the problem is with the MouseLook script that comes in the standard assets folder. Disabling this script makes the map scene load normally in the editor. Still have no idea why it works in the web player or standalone exe versions however.

I also tried running a backup version from a couple days ago, this works just fine. When I import the old scripts and scenes into the current project, however, the backup scenes stop working. Is there some kind of project setting somewhere that might have been messed up?

Have you moved any of the files in the project folder using the desktop (ie, not within Unity)? This can sometimes cause problems like this.

Thanks for the suggestion andeeee, but it magically started working again for some reason. I’m not sure why or how, but at this point I’m not going to look a gift horse in the mouth.