• 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 Mishkitten · Apr 21, 2021 at 10:21 AM · webglbuild-error

Webgl build wont run with my game,Unity Webgl build of my game doesnt work.

alt text

For some reason, whenever I run and build my game, this error shows up. I don't know what to do. Please help urgently as this is my first game for my first game-jam which is due in 2 days.,alt text

Everytime I build and run my game in Webgl, it keeps showing up this error.I don't know what to do.

Please help urgently, its my first game for my first game jam which ends in 2 days.

screenshot-9.png (126.8 kB)
screenshot-9.png (126.8 kB)
Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by gigos22 · Apr 21, 2021 at 11:59 AM

Building for webgl can be a hassle.. Unity doesn't make it very understandable to what should be recommended and when/where..

I was struggling with it as well.

It has to do with your Project Settings -> Player -> Other Settings/Publish Settings.

Also, I would like to know which version of unity you are building it from.

Here is what I recommend checking:

In Other Settings:

Api Compatibility Level : .NET Standard 2.0

Strip Engine Code: Enabled (tick v)

In Publish Settings:

Enable Exceptions: Explicitly thrown exceptions only

Compression Format: Gzip

Name Files as Hashes: Enabled

Data Caching: Enabled


Try all these, build and run, and update me.

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 Mishkitten · Apr 21, 2021 at 06:15 PM

@gigos22

Hello I applied your changes but it hasnt fixed it yet. My project setting is 2019.4.18f1.

Comment
Add comment · Show 30 · 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 gigos22 · Apr 22, 2021 at 05:44 AM 0
Share

I it's not too much, can you upload your project to github and link it here so I'll download it?

Any problem with webgl draws me to it naturally.. And i'm confident it's something in the Player settings. It's the only thing.

avatar image Mishkitten gigos22 · Apr 24, 2021 at 08:33 AM 0
Share

Hey, I finally uploaded the game to GitHub, sorry it took so long, I had never done it before so it took a while.

https://github.com/SluttySlug77/Webgl-game

avatar image gigos22 Mishkitten · Apr 24, 2021 at 10:08 AM 0
Share

Please tell me you looked at my other comment before uploading it...

Show more comments
avatar image gigos22 · Apr 22, 2021 at 05:57 AM 0
Share

Before you do that, here are screenshots of my Player settings in a pretty big webgl game.

To my knowledge this is the most optimal settings to run a webgl game.

Also note that that in Other settings. my Graphic API is set to 1.0 only to support on Apple devices. If you don't care if your game doesn't run on Apple devices, you best leave it at 3.0.

https://ibb.co/Scq2mFh

https://ibb.co/3mQHbn6

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

121 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

Related Questions

WebGL export on 32-bit OS? 1 Answer

Webgl build - only 64 bit editor??? 1 Answer

Webgl build error (potential textmesh issue) 0 Answers

WebGL not building 0 Answers

WebGL will not build on new laptop, even with empty project 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