WebGL Build doesn't fully load on Github Pages
I am currently hosting my game on Github Pages. About two months ago, I was able to upload my game to my Github Pages site, and it worked perfectly. However, I have added multiplayer to my game, and have improved it drastically and I want to update the game on Github Pages. I am using Photon PUN 2, the free version. I should also mention that I have published the same exact build on Itch.io, and the game works perfectly on Itch.io. So this problem only happens on Github Pages.
Here's what happens: I am able to push my build files to my Github repo, and Github pages says that the site is ready to go. When I open the site, the Unity loading bar fills to 100%, and then I just get a black screen. The Unity Logo doesn't show, it just goes directly to a black screen, and no audio plays. So the main scene from my game is not loaded.
This is my view when I inspect the page:
I've tried different repositories, and they all fail to load the game. They give me the same error messages in the console.
I've also tried building my game with different scenes. When I just have an empty scene in a build, I don't get any errors and the game loads. Once the progress bar reaches 100%, the Unity logo animation plays.
When I add any other scene that has actual content, I get the errors in the web console and the game doesn't load.
Has anybody experienced this before, or have any suggestions/solutions?
Your answer
Follow this Question
Related Questions
Build errors when using Photon 2 ,Build errors after using Photon 0 Answers
WebGL Build error abort(117) at jsStackTrace (WebGL.js:1:19540) 0 Answers
Unity [PUN] New Instantiated players cannot see previously instantiated players 0 Answers
Failed to Build for WebGL 1 Answer
WebGL build failing Unity v5.2 0 Answers