When I was researching technologies for a 3D web experience I started testing Unity’s capabilities for mobile usage. What started as a small WebGL test project grew to a library of different unity versions with different settings. With now over 600 builds available to test various versions, I believe my pet project can help others to make educated decision on what Unity version and render pipeline works best for their project and help jump-start development with useful tools already integrated in the open source repository that is used for the live builds.
I wanted to keep the core as small as possible, since the repo should also help give an idea of minimal build sizes of realistic project settings. If one wants to a lot more can be stripped out (and also using reflection for the cheats adds more to the code base), but in general the project is still very lightweight. Even though the project might look quite simple at first glance (grey cubes falling from the sky onto a plane is not the most impressive tech-demo one can imagine), there is actually quite a lot of stuff happening around this core. Here are some things that this project already has in place:
- An HTML console for easy debugging (you can open the console with a button and it shows all messages that would normally go to the console – now they are visible in both the normal console and in the HTML console)
- Unity rich text support in the console and HTML console – Makes styled logs a lot better readable, since the colors/sizes and font weight are applied
- Commands / cheats, that can be triggered from the console – Also supports printing out all available cheats and can be extended with own cheats by using attributes. There are also a lot of common cheats already implemented, which I found useful or needed in other projects.
- Automatic build pipeline with game.ci, that builds the project with github actions and deploys it right to my server. This makes it possible for me to maintain that many branches, which would otherwise be a manual nightmare.
- Two responsive webgl templates – One for development with development tools available, and one for release, which is just a very slick lightweight style. Works for both desktop and mobile.


