Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by ClaudioFreda · Jun 21, 2014 at 04:48 PM · build

Black screen on build run.

Hello everyone. Hope the unity community can shed some light on this.

I'm trying to build my game (a relatively big project) and I'm having problems. The game runs fine in the Unity Editor but upon running the builded .exe it just shows a black screen.

I tried removing everything except from the main menu UI, I tried building just a test scene, nothing works. The build always runs as a black screen.

The problem is present only since today, and I can't seem to understand what caused it.

Has anybody had this kind of problem?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tanoshimi · Jun 21, 2014 at 05:15 PM 0
Share

You've tried a test scene? So it's nothing related to your project. Have you ever successfully run a build?

5 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by ClaudioFreda · Jun 21, 2014 at 06:14 PM

Yep, that was already checked.

I spent almost 5 hours on this bug, and I finally discovered what it was.

Apparently, if you have only one camera set up as "don't clear" in the scene, the editor will give you no problem but the built executable will not show anything at all. Weird.

Unity should at least give an error or something.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sqy12 · May 14, 2015 at 12:54 PM 0
Share

Hi, I've got this kind of problem as well. I don't quite understand what are you want to mean by setting camera up as "don't care" in the scene. Do you mean set the tag of the camera as untagged?

avatar image Ryan-Lintott sqy12 · Feb 04, 2018 at 03:26 PM 0
Share

You have to change the "Clear flags" setting in the camera to "don't clear". After a recent update to Unity 2017.3.0 I had this problem in my app this solution worked for me! Thanks!

avatar image clabe45 Ryan-Lintott · Dec 31, 2018 at 02:46 AM 0
Share

Ryan, this will (obviously) prevent the last frame from clearing, plus the background will start as black. $$anonymous$$ost people most likely don't want this behavior.

avatar image
2

Answer by lukos · Jun 21, 2014 at 05:32 PM

Hi, might be a bit stupid question. Are you sure you are building correct scene? If yes are you sure correct scene is loaded first?

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image beowulfkaine · Jul 06, 2016 at 07:21 PM 0
Share

Thank you very much, this solved my problem. I will also add, if your building with S$$anonymous$$mVR, there are two cameras, change both to skybox as one is set to dont clear.

avatar image unity_0AD426A006EE51C47EE8 · Sep 22, 2021 at 07:01 AM 0
Share

Every question is stupid for you if don't know about anything

avatar image
0

Answer by weex- · Jun 24, 2021 at 11:15 AM

Same problem, as today, under 2020.1.2f12

Black screen into the game window, under play, and of course the build.

Any idea ? I'm not sure this forum as been refreshed about that question...

Take care everyone, i'm trying to find a solution.

weex

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by theforgot3n1 · Jul 03, 2021 at 03:43 PM

In my case I could temporarily fix the issue by somehow refreshing my screen (e.g. plugging in/out extended monitor).

However, the long term fix was realizing that one of my scripts was modifying my screen resolution too early (in awake) which caused something very similar to a black screen (with one visible line in the middle). So, for anyone with this issue you might want to double-check that you aren't modifying your screen resolution too early in the launch.

PS: It might not be the same black screen... but I'll still add this answer in case it helps someone.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by unity_0AD426A006EE51C47EE8 · Sep 22, 2021 at 07:04 AM

Hi, All! First of all I'm new in here and want to discuss about unity issues and some other games issues during my game development and right now my game is stuck on black screen and it seems like my game is not loading while the game is running on unity editor but when I making a build for android and testing it in my phone then it shows me the black screen Can anyone solve this issue. Thank you!

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JustFamous · Feb 02 at 05:40 PM 0
Share

alt text

Uncheck 'Optimized Frame Pacing' and 'Use 32-bit Display buffer'

screenshot-2022-02-02-193858.png (34.5 kB)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

IOS Cloud build linker problem - _OBJC_CLASS_$_NSBundleResourceRequest 4 Answers

2D Colliders not working in editor but work in build 0 Answers

Custom build platform 1 Answer

Why can I build the apk but I can't build and run? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges