Search Unity

A strange error creating builds

Discussion in 'Editor & General Support' started by amduartev, Nov 24, 2010.

  1. amduartev

    amduartev

    Joined:
    Aug 21, 2010
    Posts:
    71
    When I create a build for Windows, I get a strange warning:

    Code (csharp):
    1. Script attached to 'Camara' in scene 'Temp/__BuildPlayer Backupscene' is missing or no valid script is attached.
    2. 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?
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    You have missing scripts on the camera.

    --Eric
     
  3. amduartev

    amduartev

    Joined:
    Aug 21, 2010
    Posts:
    71
    But the Camera is correct. I create the build within the Camera gameObject and i have the same problem
     
  4. bernardfrancois

    bernardfrancois

    Joined:
    Oct 29, 2009
    Posts:
    373
    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
     
  5. Quietus2

    Quietus2

    Joined:
    Mar 28, 2008
    Posts:
    2,058
  6. decalibrated

    decalibrated

    Joined:
    Apr 10, 2011
    Posts:
    8

    Confirmed 10/22/2011
    Unity 3.4.1

    Cheers!