Hey there Rick! Loving the Unity 2D course so far, but I seem to have hit a snag when trying to create a WebGL build for my text adventure game. My apologies in advance if this isn’t the appropriate place to ask a question like this. I have followed the video’s instructions numerous times now (as well as other videos and instructions I’ve tried from around the web) but am always getting the same result when I attempt to make a WebGL build.
What will happen is Unity will say it has successfully built the game and will open it on my default browser (chrome), where the game will appear in the player but will not actually start. It just doesn’t initiate the void Start method in my code at all. All that appears in the player is my UI with a bunch of placeholder text; the game will not start, and does not begin in my first game “area” as it does when I play it on Unity. I have also tried opening it in Firefox (I heard chrome doesn’t like WebGL too much), as well as trying to upload it to sharemygame, but it didn’t make a difference.
While I have tried to read documentation and “answers” from around the web, I am still very new to coding and Unity and often get lost and confused by the amount of jargon I don’t understand (MIME Types, htaccess files, etc.). This has been pretty discouraging for me. I have been trying to look up answers for the past few days, but to no avail. I really want to publish this so my family and friends can try it out, this will be the first game I will have published online so I was very excited to show it off! Any help or direction you could give me would be greatly appreciated!!
Other side note info that may or may not be relevant: In the build folder it is creating a chrome HTML file instead of a basic HTML file, not sure if this would impact anything I was simply looking for anything out of the ordinary.