Reduce your Unity Build Size with some quick shrinking Tips (mobile, windows, etc)
Vložit
- čas přidán 8. 09. 2024
- Check out the Course: bit.ly/3i7lLtH
-------
Shrink your Unity3D project build size with a few simple tricks. In this video I show how to cut the size of this sample project by about 90% in just a few minutes. This works great for mobile builds that need to shrink the apk, windows games, consoles, and everything else.
More Info: unity3d.college
Join the FB Group: unity3d.group
Literally saved my exam! Went from 600 mbs to 152 mbs. Thank you!
Uff nice one
Awesome Tutorial really helps me a lot!
Just started my "Company", wanted to upload my first game, but it was 2GB big :D
How much is it now?
Really useful, I had no idea you could save so much space from audio, reducing the quality doesn't make that much of a difference in most cases, I thought it would destroy it
These videos on optimization are super useful. Thank you very much :D A couple on how to read info from the profiler would be a gift from the Gods XD
Utilized this last night, took my game build from 4.29GB to 1.21GB! Thankyou so much Jason!
One correction here, when using crunch compression, "Compressor Quality" works like it does when making ZIP files, it's not an output quality slider, it's a "how much effort should the compressor put into compressing this" slider and should always be at 100% unless you're afraid your PC will take forever to compress the file. 100% should result in higher quality without any increase in file size (there's typically a slight change in filesize as it's lossy compression anyway).
1. get build report for file sizes that are issues. get the suggested application for build reports
2. scale textures to a good res
3. compress
4. turn quality down to 1 for sound, lower sample rate
Thank you so much! My build size went from 1.7 gb to 240 mb!! Huge thanks!
You rock, Jason! I shaved about a gig and a half off just from bringing most of my max sizes of my files down from 2048 to 1024 without any noticeable difference in my game!
You are a legend. I'm currently learning the basics of Unity and trying to upload my first basic mini game to Itch and the build size was over 2gb 😂
Thank you for this! I've not only learned how to reduce build size but also the importance of resources. Optimisation is going to be something I learn next because its amazing how quickly my old computer takes a shit (so to speak). I've subbed! :)
To save you the 8 minutes, just reduce the images and sound files sizes using unity inspector, test it
It won't make a big effect in the game quality but makes the exported file way smaller.
i was worried about build size but now thanks to u i know what needs to be done
Thank you Jason, didn't know about the Editor.log thing, i'm still very green, i'm amazed at such compression rates where i can't tell the difference either..
Really cool video on how to optimize a game build size :)
Thanks for sharing - especially about reducing the texture sizes to reduce the final build size :)
glad it was helpful :)
Great video!! :)
I would be so grateful if you could make a video about the workflow needed to keep larger projects as small as possible. My project is really growing out of control. I hear some folks have like a "asset dump-project" in which they download all things from asset store, then perhaps (i guess), the export only the needed fbx's in reduced quality, to keep them small . Anyhow, some guidance from a pro like you would be super helpful as im entering 30 GB in size in a project that should be perhaps 1 GB. :)
Cheers and keep up the good work on you awesome channel!!
Thanku so much! I am going from Android Studio to Unity.
This is super useful, thanks! (Reduced my game size from 120+mb down to ~30ish. I still have more room to reduce it as well!)
glad any % I can get out of a user's storage space, went from 52 MB to 20 MB
best channel for Unity tutorials
Thank you! That's quite informational. Especially for build report.
This info certainly helped me bring a 600 mb PC build down to 300 mb. Sure, some of my larger spritesheets are now a bit blurred around the edges, but it's hard to notice. Will try it with the Android build tomorrow...
To the point video , thank you so much keep making videos like this
Jason ur amazing i read all of ur email that u send they are very useful keep doing man ur awesome
Thanks! :)
really just can't thank enough love from PK.
You are the man buddy, just awesome.
Thanks!! Awesome tutorial
But why (example) in the last project, the build size was about 40 mb, but the sum of things wasn't 40 mb? For a mobile game it's too large starting with 35 mb of things...
It's PC, Mac, Linux build and pc games are >100 mb
Unity has some basic files that ar about 30mb. So literally an empty scene with no objects and no scripts, will also cost you that much. You would want to save space later on from that point.
actually saved my life
Great video, this is really saving my butt. I got one question though. In my project, shaders are the second biggest category in terms of uncompressed space. Is there a way to cut this down somehow?
thank you sir this really helped me
Thanks for sharing this informations. It is really helping me. Thanks for that.
Thanks man! Such an awesome tip!
wooow :O
This will be very helpfull for me
Thanks a lot man :D
would love a 2022 version of this!
Also what about other categories like Meshs, levels and others?
thanks🙏😊❤️
Is it the best option for players, if i enable cruch compression with 100% compression quality?
Thank you!
Excellent !
Great man! This information is awesome!!
unbelievably useful video!!
Thanks a lot man! Very helpful!
my project have an issue with the size of the shaders:
Build Report
Uncompressed usage by category (Percentages based on user generated assets only):
Textures 27.7 mb 17.2%
Meshes 389.0 kb 0.2%
Animations 136.0 kb 0.1%
Sounds 1.9 mb 1.2%
Shaders 105.2 mb 65.5%
Other Assets 7.4 mb 4.6%
Levels 884.4 kb 0.5%
Scripts 3.1 mb 1.9%
Included DLLs 13.3 mb 8.3%
File headers 561.7 kb 0.3%
Total User Assets 160.5 mb 100.0%
Complete build size 451.9 mb
Used Assets and files from the Resources folder, sorted by uncompressed size:
85.7 mb 19.0% Packages/com.unity.render-pipelines.universal/Shaders/Lit.shader
4.7 mb 1.0% Assets/@@@GameObjects@@@/MovingObjects/Player/Shaders/DissolveShader.shadergraph
4.6 mb 1.0% Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/UberPost.shader
4.2 mb 0.9% Assets/@@@GameObjects@@@/MovingObjects/Portal/PortalShader.shadergraph
2.0 mb 0.4% Assets/Samples/ProBuilder/4.4.0/Universal Render Pipeline Support/Shader/Standard Vertex Color.shadergraph
1.4 mb 0.3% Resources/unity_builtin_extra
do you have an idea how to solve it?
Thanks! It helps me a lot!
Hey Jason
You literally saved our game!
We have 1 question though.
Regarding language files assets. We have alot of different languages and korean and chinese language files alone takes up 64mb each. This is HUGE impact on our game, and would therefore like to ask if you had some sort of guide to reducing this dramacticly.
We use NotoSansKorean + Text Mesh pro.
Great insight thank you!
Excellent👍👍👍
THANK YOU SO SO MUCH
ty for the tutorial
can we reduce the size of included dll files ?????
thanks
Thank You! :D
you re the best man
you really are the best man!
Great video, thank you :) Can you tell the how 3DModel assets effects the apk size ? What are the optimized options on models? And what can we do on the Player & Quality Settings.
I will be grateful if you tell me about these topics:)
A short and descriptive answer below this comment is enough for me.
More polygons you'll make, More it'll increase file size. And, If it's android game. Keep polygons at low, There's not much effect by 3d models' sizes. Most of size is affected by textures, sounds.
And, player and Quality either doesn't affect much in game size. Just keep texture resolution efficient and audio at 192 or 256 kbps
Great stuff, but isn't 40mb's still way too large build size for a scene with eight spaceships and two audiofiles?
most of that is the unity base. I forget the actual size, but with the full .net profile (not subset), I think it runs around 40mb.
The total size of the game's actual assets in the build (after compression) came out to 2.8mb
Note that's also for windows exe builds, it varies per platform though I don't recall the exact sizes atm.
You have to compress via winrar or make setup. It'll be way less
Great one, will this work same for asset bundles?
thanks for teaching.Is there anyway to throw away system core libs like networking stuff from Unity Engine before building?
I'm still looking for the answer to the `What's the minimum file size for a Unity file`. I'm thinking it should varry for other platforms. What can one get `away` with on a mobile project for instance?
What adds upto the complete size shown in editor log ? To .apk
thank so much
Awesome video and not a single dislike. Having a nightmare with 75% of project build size due to File Headings. Any pointers? Here is my query: stackoverflow.com/questions/49430388/unity-build-with-over-70-taken-up-by-file-headers
I'm trying to remember where I saw it, but there was a bug that caused that on mobile builds (think it may have been ios only)... Just saw this a few days ago, if I remember where I saw the fix I'll post it here. Have you already tried switching unity versions (upgrade / patch versions)?
legend
Thanks
thxs
thank u so much
Awasome video!
well done
keep it up maaaan
Ok cool. But i found another problem the Occlusion Occluded files 📂 are so big. What can i do in this situation sir?
Hey Jason! Great video and very helpful! Thank you!
So I did all that for my android game, and got the textures to reduce from 250mb to 180mb. But my final apk size only reduced from 190mb to 185mb. How do I get to reduce the apk size?
I'm making a 2D game and i started making yesterday it was 17mb project but today i added only a health bar and damage system and it's 75 mb project how did that happen?
Build Report
Uncompressed usage by category (Percentages based on user generated assets only):
Textures 889.3 kb 5.3%
Meshes 0.0 kb 0.0%
Animations 21.3 kb 0.1%
Sounds 0.0 kb 0.0%
Shaders 0.0 kb 0.0%
Other Assets 30.3 kb 0.2%
Levels 37.1 kb 0.2%
Scripts 2.0 mb 12.3%
Included DLLs 13.3 mb 81.7%
File headers 17.9 kb 0.1%
Total User Assets 16.3 mb 100.0%
Complete build size 74.9 mb
Thanks for the video
But my file headers are too large 120mb please how can I reduce it I have tried everything
thanks a lot :)
will this work for avatars? trying to make a 27mb avatar to 10mb so i can upload for oculus quest?
where do I found unity editor log to reduce apk size?
how to reduce shader size ?
funny enough I was developing my app and a simple loading sprite sheet animation with about 150 frames took 300 MB size haha it was a nightmare as my app size jumped from 76MB to approx 450+ MB
anything that can help to reduce mesh size ? Some character model takes 200-400 kb and some take 4-5mb
Clueless for that particular part.
There's an option to compress meshes in the model import, i suggest medium compression
czcams.com/video/a9M0DKiJSJo/video.html
Consider i imported some assets and in that some are not used in game but still there in project. Will unity include those unused files in built?
Nope, it'll keep those from the build
Unity keeps all the scripts and all the files included in Resources folder, even if they are not used in the build.
Converting wav to ogg is working for me . is it good?
for my build size, i already reduce textures and images. but how to reduce meshes size. anyone?
There's an option to compress meshes in the model import, i suggest medium compression
czcams.com/video/a9M0DKiJSJo/video.html
this may be a stupid question, but reducing the texture size also would make the game less resource dependent when it comes to gpu right?
I don't really know. But I'd assume it would at least mean that the gpu doesn't have to store as much in it's quik-memory. Can't say anythinig about processing-resources tho c:
Daniel Rous
seau
ofc i dont have a build report in my log files....
My images still same size in LOg,what can i DO
cum
My apk with assets and scripts it takes 13 mb for included dll files.......
when i build empty apk it still takes 13 mb for included dll files....
A fully made game under 35 mb will be good
I know that one
Thank you!
thanks
Thank you!