Re:Ask HN: Is it possible to use Unity on the web in 2018?
by Kiwikwi on Tuesday March 13, 2018 @10:39AM
(#16576455)
Unity will automatically exclude the things that can be excluded. See "Strip Engine Code" at https://docs.unity3d.com/Manual/webgl-building.html
This only goes so far. E.g. Unity doesn't have a separate 2D renderer, so your 2D game will use the 3D renderer. (But obviously, a 2D game won't include any 3D materials etc.)
I don't know if it's barely downloading. Looking at the Dev tools, it looks like it downloads assets, then takes a good while to parse them.
> Even if some systems, like physics, can be removed if not used, Unity is still a full-blown 3D game engine. It can of course also do 2D, but it'll almost inevitably have a higher overhead than a dedicated 2D WebGL engine.
So, there's no way to not "load" the 3D component or other components besides physics, or is there?