Publishing Unity Games To WebGL
One of the nice features of Unity is how easy it is to publish games to the web. If you’re doing something like a game jam, you’ll probably have a place you need to post your game online for others to play. If you’re releasing your game on your own, but not already publishing to a trusted platform, it’s better not to require players to download a bunch of potentially harmful files to their computer to try your game. Also a game published to the web lowers the barrier to entry, as a lot more players will be willing to give your game a try if all they have to do is open a web page.
Unity makes the process of creating a WebGL build extremely easy. All you have to do is select WebGL as a platform, maybe make a few minor changes in your project settings, and click build.
Once you have your build complete, just post it to your web hosting provider of choice and give your game a try. If everything seems to work, you’re ready to start sharing the link to your game, and start letting players give it a try.