Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by Hotshot10101 · Feb 21, 2020 at 05:37 AM · webglblackscreen

WebGL Build Shows Black Screen

I have a game that includes an asset from the asset store, a Canvas UI and a coin asset. I am developing on a MacBook pro. I have Unity 2019.2.16f.

When I play in the editor everything is fine.

If I build for WebGL nothing shows up. It is just a black screen.

How do I go about figuring this out?

I get one error when I build that says there isn't an event system, but there is one in the scene.

Here is what it looks like when running in the editor:

alt text

The colored lines around the edges are a world space Canvas based GUI. So is the gray rectangle in the middle.

I also tried building it for macOS and it has some of the elements of the teeth guys, but most of them are just gone.

How do I figure out what is going wrong?

webglscreenshot01.png (197.1 kB)
Comment
Add comment · Show 6
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 Hotshot10101 · Feb 21, 2020 at 05:40 AM 0
Share

I have been running it in Chrome on my $$anonymous$$acBook and that gives the black screen.

If I run it in Safari then the screen is all pink. Obviously something is wrong with a shader somewhere, but how do I figure it out when it runs fine in the editor?

avatar image JPhilipp · Feb 21, 2020 at 09:09 AM 0
Share

Do you have the error log for the build when it's running?

avatar image Hotshot10101 · Feb 21, 2020 at 02:00 PM 0
Share

There are no errors when I build.

I just created a brand new scene and changed nothing in it.

I then build for Webgl and run it and I get the splash screen from Unity and then a black screen in Chrome.

When I run the same thing in Safari I get a pink screen.

avatar image Hotshot10101 · Feb 21, 2020 at 02:30 PM 0
Share

I just created a brand new project, changed the build type to WebGL and built it. I get 47 build errors. I did not add anything at all or change any settings. Just created the project (as a regular 3D project).

Is it safe to upload a Editor.log file to this forum? Is there any information in the log that would compromise my security?

avatar image JPhilipp Hotshot10101 · Feb 21, 2020 at 02:37 PM 0
Share

By the way, I did not mean errors during building -- though that's very helpful too -- but errors when running the build. As far as posting here, you best check the file yourself and see if there's anything you don't want the world to see (like specific long file paths).

avatar image Hotshot10101 JPhilipp · Feb 21, 2020 at 03:01 PM 0
Share

No errors while running.

I kind of figured out the problem. Will post my answer....

1 Reply

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

Answer by Hotshot10101 · Feb 21, 2020 at 03:01 PM

Well, I am not sure what is wrong with my 2019.2.16f installation, but something isn't right.

I decided to download and install 2019.3.3f and see what it would do. Everything works just fine. There must be something corrupted in my other installation of Unity.

So this is no problem at all in my project.

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

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

126 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Blank screen on WebGL (Lighting) 0 Answers

WebGL - swiftshader - Unity 18.1, some scenes won't load 0 Answers

WebGL Build on Kongregate with Black Screen 0 Answers

WebGL and Access-Control-Allow-Origin 1 Answer

Correctly configuring IIS7 to serve gzipped content. How. 1 Answer


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