A strange error creating builds

When I create a build for Windows, I get a strange warning:

Script attached to 'Camara' in scene 'Temp/__BuildPlayer Backupscene' is missing or no valid script is attached.
UnityEditor.HostView:OnGUI()

Since I have this error, I set up the lightmap shadows with distance of 20, but in the build the shadows is render with 100 distance

Any ideas?

You have missing scripts on the camera.

–Eric

But the Camera is correct. I create the build within the Camera gameObject and i have the same problem

I had the same issue. The problem was that I modified a script attached to the camera, so it didn’t derive any longer from MonoBehavior (instead I started calling the Update() and Start() methods manually). Removing the script from the Camera’s GameObject resolved the issue.

I filed a bug report about this:
http://fogbugz.unity3d.com/default.asp?402166_um9ahlcplpdpe9bv

Fyi, you should never directly link to fozbug. I’ve seen people doing that before, with old tickets containing their license keys or other sensitive information.

Confirmed 10/22/2011
Unity 3.4.1

Cheers!