File size increased twice.

Hi all!

Need help with one thing please. I’m using Unity Pro and have strange things with final file size (web deployment).

There is a quite big project with a lot of textures and models. Another guy was working on it before me. And he had final file size 7 mb. Then I’ve started to work on this project instead of him. I’ve changed few scripts. Didn’t touched any of assest, and… I get 15 mb file size!

Does anyone knows how it can happen? And where to search problem?

Thanks.

Welcome to the forum!

The File > Build Settings window has an option to compress textures. Is it possible that this has been switched off since you took over the project?

No, texture compression was first thing I’ve checked.

So after spending few hours I just reverted to previous version and done all my changes from scratch :(.

Currently the size is 7 mb again.

The editor.log file will contain a report of build sizes after building your project. Check there (click “open editor log” in the Unity console). You’ll see something like:

***Player size statistics***
Level 0 'Assets/Build Structure/Unity Levels/Branding.unity' uses 231.5 KB compressed / 1.2 MB uncompressed.
Level 1 'Assets/Build Structure/Unity Levels/Login.unity' uses 1.0 KB compressed / 24.0 KB uncompressed.
Level 2 'Assets/Build Structure/Unity Levels/Title.unity' uses 1.0 MB compressed / 4.8 MB uncompressed.
Level 3 'Assets/Build Structure/Unity Levels/Gameplay.unity' uses 4.5 MB compressed / 13.7 MB uncompressed.
Total compressed size 5.8 MB. Total uncompressed size 19.8 MB.

Textures      9.5 mb	 47.8% 
Meshes        2.2 mb	 11.1% 
Animations    3.0 mb	 15.4% 
Sounds        3.4 mb	 17.2% 
Shaders       261.9 kb	 1.3% 
Other Assets  92.7 kb	 0.5% 
Levels        369.5 kb	 1.8% 
Scripts       274.5 kb	 1.4% 
Included DLLs 204.0 kb	 1.0% 
File headers  525.0 kb	 2.6% 
Complete size 19.8 mb	 100.0% 

Used Assets, sorted by uncompressed size:
 1.3 mb	 6.7% Assets/Vehicles/Textures/Tower Crane.psd
 1.0 mb	 5.1% Assets/Main Menu Scene/Textures/Settings Cluster.psd
 1.0 mb	 5.1% Assets/Main Menu Scene/Textures/Credits Cluster.psd
 1.0 mb	 5.1% Assets/Main Menu Scene/Textures/Title Screen.psd
 1.0 mb	 5.1% Assets/Main Menu Scene/Textures/Help Cluster.psd
 976.3 kb	 4.8% Assets/Music/Music_InGame.mp3
 682.8 kb	 3.4% Assets/Interface/Stencil Font/Stencil PSD.psd
 599.0 kb	 3.0% Assets/Characters/Models/scab-low.mb
 518.0 kb	 2.6% Assets/Music/Music_Title.mp3
 425.0 kb	 2.1% Assets/Characters/Models/union-low.mb
 341.4 kb	 1.7% Assets/Vehicles/Textures/Windshield Dirt.psd
 341.4 kb	 1.7% Assets/Characters/Textures/scab_skin.psd
 341.4 kb	 1.7% Assets/Characters/Textures/scab_clothes.psd
 266.7 kb	 1.3% Assets/Characters/Models/Animations/scab@apologetic.mb
 256.1 kb	 1.3% Assets/Interface/Stencil Font/Stencil Blurred.psd
 215.5 kb	 1.1% Assets/Characters/Models/Animations/scab@indignant.mb
 197.8 kb	 1.0% Assets/Characters/Models/Animations/scab@smug.mb