right now the empty project is about 2.3 MB, but hypothetically, if you want to develop a 2D game, can you strip most of the unity engine to generate below 1MB project ?
why doesn’t unity strip the engine on the class level ( not the module leve), right now it includes the full 5 MB physics module even if you use a simple Physics.Raycast ?
@ywj7931 I’m using unity 2017.1 , make sure to use brotli compression instead of gzip (it slower to compress, so use it only for final builds or to test build size )
In that case Unity will just decompress the payload using javascript instead of doing the decompression at the “browser level” (the end result will be a longer load time for the end user). Regardless, you can use gzip compression (supported everywhere) which will also bring it below 4MB. Currently our binary (contains only code, almost no art assets) is 3.5MB with gzip compression so it’s definitely feasible.