Unity WebGL Game Not Working? This Should Fix it

  Рет қаралды 50,232

AstroSam

AstroSam

2 жыл бұрын

Quickly fix any Unity web versions of your game if it is not playing, and how to correctly upload to itch.io
My Streaming Channel: / @astrosamstreams
Discord Server: / discord
Github: github.com/sam-astro
Support:
● Patreon: / astrosam
● Ko-fi: ko-fi.com/astrosam
● Monero: 4AAjyAHKnYwCsgJp16v1YeeDPA1Z51QKUfCMWsiCDxkNBFCtbUfDHD7K5sZDrFH2pnGsDAH989XwXdudcoC4iqtVC9QLk8r
--------------------------------------------------
Related Links:
● Streaming Channel: / @astrosamstreams
● Itch.io: astrosam.itch.io/
● Github: github.com/sam-astro
● Discord Server: / discord
--------------------------------------------------
Music:
Getting it done - Kevin Macleod
--------------------------------------------------
THIS VIDEO IS NOT SPONSORED
#gamedev
#unity
#gamejam

Пікірлер: 79
@Chadderbox
@Chadderbox 2 жыл бұрын
I wish I had this video to show some of my friends a while ago. Really useful stuff!
@yiikes.1243
@yiikes.1243 Жыл бұрын
love this. every single game jam I always find my way here an hour before the deadline.
@GentleGorillas
@GentleGorillas Жыл бұрын
LOL LITERALLY
@AlfurnoGaming
@AlfurnoGaming Ай бұрын
Same
@giacomocali6853
@giacomocali6853 2 жыл бұрын
OMG! You just saved my life. I was trying to make my WebGL game work for Ludum Dare 50. This video should definetively have more views.
@AstroSamDev
@AstroSamDev 2 жыл бұрын
I'm glad it worked! My biggest fear with game jams was the possibility that my game would be unplayable. During my very first game jam, I built and submitted it just before the deadline, but it was a broken build so nobody could play it :( . I found these settings fixed it 95% of the time. Good luck in LD 50!
@giacomocali6853
@giacomocali6853 2 жыл бұрын
@@AstroSamDev Thanks, i published the game just now :)
@gfcf14
@gfcf14 8 ай бұрын
Disabling compression alone worked for me. Thanks so much!
@dawnsglory
@dawnsglory Жыл бұрын
You saved me! Thank you so much! (my lighting changed a little though and some glitching in deep blacks, but maybe it's something else)
@Hwyadylaw
@Hwyadylaw 10 ай бұрын
Stripping isn't *compression*, though it does save a bit of space. It "simply" removes unused code. Unfortunately it's possible that it determines that a chunk of code is unused and throws it away, even when it's needed to run the game.
@GriTss
@GriTss Жыл бұрын
Thank's a lot! Saved my ass. I've been through 15 google pages with useless forums before I found this one.
@olihandro4299
@olihandro4299 2 жыл бұрын
BRO thanks so much this is the best video ever you helped me so much!!!!!!
@AstroSamDev
@AstroSamDev 2 жыл бұрын
Glad I could help!
@EUDEUB
@EUDEUB 2 жыл бұрын
Thank you! you saved my project
@AstroSamDev
@AstroSamDev 2 жыл бұрын
Glad it helped!
@pianoatthirty
@pianoatthirty Жыл бұрын
This is seriously the most important video on KZfaq lol
@TheFaixee
@TheFaixee 2 жыл бұрын
Thank you Dude you saved my Project.
@AstroSamDev
@AstroSamDev 2 жыл бұрын
Glad I could help!
@Wendell-om3nq
@Wendell-om3nq 10 ай бұрын
Thanks that solved the problem!
@blraj.
@blraj. Жыл бұрын
Hi, thanks for the video. I have a project I want to keep in linear space (but I tried this anyway with gamma) but whilst it rendered white and black large pixels before, with these settings it gets stuck on loading, any ideas how to fix it?
@randielarias6766
@randielarias6766 2 жыл бұрын
Loco Muchisimas gracias! Hagan el video que si funciona 100%
@bl6qs443
@bl6qs443 2 жыл бұрын
thank you so much!
@acakebread
@acakebread Жыл бұрын
awesome.. worked like a charm
@TinyGamesStudio
@TinyGamesStudio Жыл бұрын
😃Thanks Buddy!! You Help Me!😃
@juantomasdelportillo7888
@juantomasdelportillo7888 Жыл бұрын
you saved me, for real ,thank you🙌
@Criares
@Criares 2 жыл бұрын
YOU SAVE ME!! THANK YOUU!!
@therealdeadend
@therealdeadend Жыл бұрын
Man you really saved the day
@diogoveiga2918
@diogoveiga2918 Жыл бұрын
Thank you so much!
@deanodoesstreaming1653
@deanodoesstreaming1653 Жыл бұрын
Great stuff man learning unity atm you saved me a lot of time
@worldofretrogaming2248
@worldofretrogaming2248 Жыл бұрын
lol in the game I´m working on in unity right now I´m, using the same music :D Nice vid btw.
@regys9521
@regys9521 Жыл бұрын
thank you very much is not enough for this content
@edgirlgaming
@edgirlgaming 2 ай бұрын
you deserve a like for helping me.
@MausBastion
@MausBastion Жыл бұрын
Still having issues. What else can I try?
@t3st3d
@t3st3d Жыл бұрын
thanks for the tutorial
@Falcon23K
@Falcon23K 2 жыл бұрын
great video
@syconanimation773
@syconanimation773 2 жыл бұрын
When I export my game the play buttons is not working can you help out
@sora1099
@sora1099 Жыл бұрын
Thanks!
@ItsNetworking
@ItsNetworking Жыл бұрын
Have you ever had: "Unity An abnormal situation has occurred: the PlayerLoop internal function has been called recursively." ? I have no idea how to fix it... been stuck for a while now.
@AZEScottTroll
@AZEScottTroll 10 ай бұрын
I'm getting a signature mismatch error everytime I try and load a new scene
@arpitsrivstva
@arpitsrivstva Жыл бұрын
I am getting br (broken) files in build folder. How to fix?
@omgimnot6738
@omgimnot6738 Жыл бұрын
Bro you are a demi-god
@FC12CGaming
@FC12CGaming 2 жыл бұрын
Is There Any Possible Way To Upload The WebGL Build To Something Like Google Slides?
@AstroSamDev
@AstroSamDev 2 жыл бұрын
No I don't think it's possible to embed it in Google slides, but you might be able to do something where you upload the source files to drive then embed the html portion.
@kazru7703
@kazru7703 2 жыл бұрын
I can build my file successfully, but when i upload my Game with WebGL.Zip file,i don't see the "This file will be played in the browser" on my screen , can you help me?
@AstroSamDev
@AstroSamDev 2 жыл бұрын
Ok can you msg me in discord? I'm AstroSam#2224
@kazru7703
@kazru7703 2 жыл бұрын
@@AstroSamDev Yes,I'm KAZRU(#7118).
@amgames5638
@amgames5638 2 жыл бұрын
Thank you, you saved me! Unity NEEDS better support for WebG! How hard would it be to fix this, Unity, at very least change the defaults lol
@AstroSamDev
@AstroSamDev 2 жыл бұрын
You're welcome, I'm glad I could help!
@user-td7np3st4m
@user-td7np3st4m 10 ай бұрын
Great! This is the real deal....
@sanghoonlim6505
@sanghoonlim6505 Жыл бұрын
How can I do in WebGL2.0? Help me.
@sanghoonlim6505
@sanghoonlim6505 2 жыл бұрын
How can I use Linear?!
@ejtomas1508
@ejtomas1508 Жыл бұрын
my game in unity looks fine but when i export it, the text isnt where its supposed to be. I need help
@AstroSamDev
@AstroSamDev Жыл бұрын
This can usually be an issue with the canvas object in unity. Try changing the scaling to match the screen width. Also, maximize the game view in unity so you can see the changes in real time without needing to build.
@osamaelawad1428
@osamaelawad1428 2 жыл бұрын
IT'S WORK ,Thank You too much , would You PLEASE inform me the website Name which You upload and host You webgel
@AstroSamDev
@AstroSamDev 2 жыл бұрын
Itch.io
@osamaelawad1428
@osamaelawad1428 2 жыл бұрын
@@AstroSamDev Thank you too much my friend Greetings From Sudan
@sanghoonlim6505
@sanghoonlim6505 2 жыл бұрын
0:54 I have ".NET Standard 2.1". Is there are problem?
@AstroSamDev
@AstroSamDev 2 жыл бұрын
That is unrelated to this video and a newer version should not have any effect.
@plateshutoverlock
@plateshutoverlock Жыл бұрын
I love how unity managed to create the _EXTRACT ONLY_ format known as .unityweb There is absolutely no 3rd party utility known to man that can modify or add content to .unityweb files, only extract from them
@sanghoonlim6505
@sanghoonlim6505 2 жыл бұрын
How can I do in WebGL2?
@dulo9276
@dulo9276 Жыл бұрын
2022 still working!!!
@GlitchVR
@GlitchVR Жыл бұрын
Did you find a fix? I feel like we are having the same problem here!
@somedudeonaktm6545
@somedudeonaktm6545 2 жыл бұрын
Will this video help me with the unity game using over %80 cpu???
@somedudeonaktm6545
@somedudeonaktm6545 2 жыл бұрын
Like I uploaded it to itch.io and it uses over %80 of the cpu, will this tutorial help with that??
@AstroSamDev
@AstroSamDev 2 жыл бұрын
The settings I changed should increase performance, but some games are too complex to even run in a browser. If I were you, I would also try limiting the amount of game objects and scripts running so it is lighter on the CPU. If it still wont run in the browser, just export for windows and mac.
@IberianInteractive
@IberianInteractive 7 ай бұрын
Nope It doesnt work...
@Kaldrin
@Kaldrin 2 жыл бұрын
This created even more error messages when playing the WebGL :/ Thanks for trying though
@AstroSamDev
@AstroSamDev 2 жыл бұрын
Please make sure the errors are due to the compiler, rather than your own code or assets. The problems this video fixed are mainly graphics and loading related, which usually only throw discrete errors or just cause the game to freeze/crash. I advise you to actually read what the error message says; it's purpose is to tell you exactly what is wrong so you can fix it.
@Kaldrin
@Kaldrin 2 жыл бұрын
@@AstroSamDev the game in webgl won't load that's for sure, but in addition when I try your method it gives me a big error pop up in the navigator. I'll investigate more but our code and assets don't have errors in the editor or in a standard build
@sanghoonlim6505
@sanghoonlim6505 2 жыл бұрын
How can I do in 2021 Version?
@AstroSamDev
@AstroSamDev 2 жыл бұрын
This process should apply to all of the recent versions of unity
@sanghoonlim6505
@sanghoonlim6505 2 жыл бұрын
@@AstroSamDev But, I had error. So I downgraded.
@elenitsakou8456
@elenitsakou8456 3 ай бұрын
ΑΜΑΖΙΝG!
@mentallyunprepared8635
@mentallyunprepared8635 Жыл бұрын
I wish it worked
@_GhostMiner
@_GhostMiner 2 жыл бұрын
Webgl in unity is the worst thing ever. >:( Gamemaker is much faster and never gets stuck on some il2cpp or compile web module. But obviously gamemaker can't make 3d and basically everything but 2d
@mcdev6868
@mcdev6868 Жыл бұрын
This is terrible advice. Yes it may fix a problem, but by bruteforcing. There are better ways to fix optimization issues, e.g. just by looking at the console. Usually it tells you directly what is wrong. I never ever had a game be "too far" compresed this is just wrong. There might be other issues, server settings are one of them. So maybe compression is an issue for specific webhosts but the reasoning I think is wrong. Both Gzip and brotli are lossless compressions so quality is not increased either by choosing those. Compression of assets is still defined per asset. For mesh compression though, you are right.
@BeanGuyThatDoesStuff
@BeanGuyThatDoesStuff 11 ай бұрын
NO IT IS NOT WOKRING DO NOT BOTHER WASTING YOUR TIME ON THIS STUPID TUTORIAL JUST SAYING
@supercyclone8342
@supercyclone8342 4 ай бұрын
​@@mouldybluelemonAny suggestions? I'm using 2022.3.5f1 and nothing is working. And my project is tiny too. I'm just experimenting with UI
@hejhejhej952
@hejhejhej952 Жыл бұрын
Thank you so much!
Evolving Genetic Neural Network Optimizes Poly Bridge Problems
9:59
I Designed My Own 16-bit CPU
15:46
AstroSam
Рет қаралды 1,8 МЛН
Why? 😭 #shorts by Leisi Crazy
00:16
Leisi Crazy
Рет қаралды 47 МЛН
Omega Boy Past 3 #funny #viral #comedy
00:22
CRAZY GREAPA
Рет қаралды 32 МЛН
Cute Barbie gadgets 🩷💛
01:00
TheSoul Music Family
Рет қаралды 74 МЛН
How To Deploy Your Unity Game With WebGL
5:02
BMo
Рет қаралды 124 М.
Making My Own Programming Language and Coding a Game in It
10:19
AstroSam
Рет қаралды 1,2 МЛН
How to Host Unity a Webgl Game on Github for Free
3:57
Max O'Didily
Рет қаралды 4,4 М.
How Games Fail, And How To Fix Them
5:22
AstroSam
Рет қаралды 1,5 М.
Using AI to Beat Flappy Bird
5:55
AstroSam
Рет қаралды 12 М.
Boost the Performance of Your WebGL Unity Games! - Florin Ciornei, JS GameDev Summit 2023
7:26
JavaScript Conferences by GitNation
Рет қаралды 3 М.
Infiltrating Roblox’s Fake Middleman Scam
18:57
No Text To Speech
Рет қаралды 236 М.
What Jumping Spiders Teach Us About Color
32:37
Veritasium
Рет қаралды 1,4 МЛН
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43
Как я сделал домашний кинотеатр
0:41
RICARDO
Рет қаралды 1,5 МЛН
AMD больше не конкурент для Intel
0:57
ITMania - Сборка ПК
Рет қаралды 504 М.