I’m trying to share my game via WebGL. I’ve managed to Build and Run the game using WebGL, but I don’t see the “Share WebGL Game” option under the Window menu that will allow me to share the game.
Any help resolving this is appreciated. Thanks.
I’m trying to share my game via WebGL. I’ve managed to Build and Run the game using WebGL, but I don’t see the “Share WebGL Game” option under the Window menu that will allow me to share the game.
Any help resolving this is appreciated. Thanks.
It has been renamed to “WebGL Publisher”.
Please install “WebGL Publisher” from Package Manager.
Thank you. So following these instructions, I am not seeing WebGL Publisher in the Package Manager. Am I missing something? Thanks.
https://docs.unity3d.com/Packages/com.unity.connect.share@2.1/manual/index.html#requirements
And to complicate matters further, I confirmed that I have installed WebGL Build Support.
And so I can build and run my project.
After building and running, the game loads and runs in my browser locally just fine, but I don’t know how to go further and actually share the build with someone else because I can’t access the “Share WebGL Game” menu option.
Additionally, if I close the locally running build in my browser, and then try to open it again by clicking the html file link created by the build, I get several errors and the game won’t run.
Not sure what I’m missing.
Sorry, I don’t know this problem solution.
try this step.
Thank you gtkrk. I followed your steps and found WebGL Publisher, and have verified that I now have it installed:
When I Build and Run, my game loads in my browser and I can play it just fine. Here are the files the build is making:
So I still have two issues. The first is that when I close the browser that is automatically opened after Build and Run, and then try to reopen it by opening the “index.html” file (shown above), the browser opens but the game doesn’t run and I get a long list of errors:
The second issue is that I still don’t see the “Share WebGL Game” menu option under the Window list.
Also I can load an old project made using Unity Version 2019.3.13f1 and in that project I can Run and Build and access the Share WebGL Game option to share my game. For my new project now I am using Unity Version 2020.1.0f1, so maybe it’s related to a version issue…?
When opened from Explorer, it becomes file: // ~ URL, which is rejected by fetch API (XHR) for security.
Ah I see thanks. So without the “Share WebGL Game” option, is there an alternative method I can use to share the game?
For example, you can upload the Build folder to GitHub as it is and set GitHub Pages to publish it. However, GitHub restrictions apply (up to 100MB per file, GZip compression is basically not possible)
this issue has been raised in other threads. the only way it worked for me is to downgrade the game to 2019, then install from package manager, then upgrade again.
In case someone finds this thread looking for the Window → “Share WebGl Game” button, it’s found at Publish → WebGL Project.
i don’t have a publish menu neither…
Man…
Then I uploaded some crap to give it a first try and no way to remove // unpublish it?
Some topics saying to be possible accessing the UnityConnect platform to see the list of the published builds but the site is down now ahah!
What next then?
Edit : and I think I am not the only one having a hard time here, someone is posting same build from the same game again and again right now
Is there a solution to this yet? I can’t seem to find a way to share my webgl - maybe I can upload it through a wordpress site somehow?
Hey I have installed WebGL Publisher but still can’t see Share WebGL game option in Windows menu. can u help me?
ok Thank you