Black screen after success build.

Today I build many times my proyect, exporting both to webplayer and to .exe and It worked perfectly.

Now, after adding some animations and particle systems, everytime I build my project no matter what platform, I just get a black screen.

Also tryed to enable Developer mode to my .exe but nothing changed.
What could be the reason of this happening?

Oh yes, and changing the Time Scale to 1 doesn’t work because it’s already on 1.

Any help please? I have a deadline and I seriously don’t know where else to look!
Thanks!

Edit: The only additional info I was able to get, is the log from the .exe

Direct3D:
    Version:  Direct3D 9.0c [aticfx32.dll 8.17.10.1091]
    Renderer: ATI Radeon HD 4800 Series        
    Vendor:   ATI
    VRAM:     504 MB (via DXGI)
    Caps:     Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=1 DF24=1 INTZ=1 RAWZ=0 NULL=1 RESZ=1 SlowINTZ=1
desktop: 1920x1080 59Hz; virtual: 1920x1080 at 0,0
<I> Initializing (RawInput).

<RI> Input initialized.

Non platform assembly: data-0355CDA8 (this message is harmless)
Non platform assembly: data-08710048 (this message is harmless)
Non platform assembly: data-08729250 (this message is harmless)
Non platform assembly: data-08737F88 (this message is harmless)
Platform assembly: C:\Users\Pitu\Desktop\Test_Data\Managed\UnityScript.Lang.dll (this message is harmless)
Platform assembly: C:\Users\Pitu\Desktop\Test_Data\Managed\Boo.Lang.dll (this message is harmless)

If you remove the said particles and animations, does it build properly again?

After checking everything, the problem is the camera. I have only one camera in my scene and it's active. If I build the project the screen goes black, but if I add a second camera, the project builds fine and the active camera turns to be the second one. One other thing, is that... is it possible that my character (with animations) is not being exported, so that the camera which parent is my character, doesnt exists?. I'm pretty sure it's that... but how is that my character is not being exported?

Does the character exist in the scene hierarchy when you build? If not, when and how is the character instantiated?

Ahh. Well, you might want to convert that comment of yours to an answer and accept it, so it won't appear on the 'unanswered' list. :)

I am facing the same problem when exporting to .exe. The project has some 2D animations and basic GUI. Also, I changed the name of the scene from aut.unity to school.unity during development. Now when I play in editor, it works fine. But, on building it, gives a blank(light blue) scene. I also tried unchecking Direct3D 11 and I have also included my scene in the Build Settings Box.

1 Answer

1

Yeah, the problem was that for some reason I forgot to uncheck “Editor only” on my Character container tag. That way it was not aprearing on the build, only when hitting play.

Thanks!