Reduce your Unity Build Size with some quick shrinking Tips (mobile, windows, etc)

Sdílet
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

Komentáře • 112

  • @VaporJ3m
    @VaporJ3m Před 3 lety +22

    Literally saved my exam! Went from 600 mbs to 152 mbs. Thank you!

  • @davegamedevelopment
    @davegamedevelopment Před 4 lety +22

    Awesome Tutorial really helps me a lot!
    Just started my "Company", wanted to upload my first game, but it was 2GB big :D

  • @TheGodEmperorOfMankind_
    @TheGodEmperorOfMankind_ Před 6 lety +5

    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

  • @marcosssocram
    @marcosssocram Před 6 lety +19

    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

  • @remerezwolf1
    @remerezwolf1 Před rokem

    Utilized this last night, took my game build from 4.29GB to 1.21GB! Thankyou so much Jason!

  • @Enverex
    @Enverex Před 2 lety +4

    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).

  • @StikZ
    @StikZ Před 2 měsíci

    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

  • @Daniel_4_Fun
    @Daniel_4_Fun Před 7 měsíci

    Thank you so much! My build size went from 1.7 gb to 240 mb!! Huge thanks!

  • @ClintDecker
    @ClintDecker Před 2 lety

    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!

  • @Mrjononotbono
    @Mrjononotbono Před rokem +1

    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! :)

  • @versatilecontent4244
    @versatilecontent4244 Před 2 lety +5

    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.

  • @x-lufias69
    @x-lufias69 Před 3 lety

    i was worried about build size but now thanks to u i know what needs to be done

  • @kimchitool
    @kimchitool Před 6 lety +1

    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..

  • @Tutterzoid
    @Tutterzoid Před 6 lety +4

    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 :)

  • @Director414
    @Director414 Před 2 měsíci

    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!!

  • @nathancook8452
    @nathancook8452 Před 2 lety

    Thanku so much! I am going from Android Studio to Unity.

  • @Chloelol
    @Chloelol Před 4 lety

    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!)

  • @itookaonabookanyway7385

    glad any % I can get out of a user's storage space, went from 52 MB to 20 MB

  • @salihbalkis72
    @salihbalkis72 Před 4 lety

    best channel for Unity tutorials

  • @slavazemlyanik1189
    @slavazemlyanik1189 Před 3 lety

    Thank you! That's quite informational. Especially for build report.

  • @BurnTilDeath
    @BurnTilDeath Před 2 lety

    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...

  • @jayantbarthwal4470
    @jayantbarthwal4470 Před 6 lety +1

    To the point video , thank you so much keep making videos like this

  • @factsspace8326
    @factsspace8326 Před 6 lety +1

    Jason ur amazing i read all of ur email that u send they are very useful keep doing man ur awesome

  • @Hassanali-jr4yb
    @Hassanali-jr4yb Před rokem

    really just can't thank enough love from PK.

  • @yusufum_
    @yusufum_ Před rokem

    You are the man buddy, just awesome.

  • @twoboxtoofurious
    @twoboxtoofurious Před 4 lety +1

    Thanks!! Awesome tutorial

  • @sconosciutosconosciuto2196

    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...

    • @prateekpanwar646
      @prateekpanwar646 Před 4 lety +1

      It's PC, Mac, Linux build and pc games are >100 mb

    • @pritamdavis
      @pritamdavis Před 4 lety +2

      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.

  • @iamcheezeYT
    @iamcheezeYT Před 3 lety

    actually saved my life

  • @wopsieneter
    @wopsieneter Před 4 lety +3

    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?

  • @coldhands-jk7qe
    @coldhands-jk7qe Před 3 měsíci

    thank you sir this really helped me

  • @mariokartgameplay6622
    @mariokartgameplay6622 Před 3 lety

    Thanks for sharing this informations. It is really helping me. Thanks for that.

  • @joshpolman201
    @joshpolman201 Před 3 lety

    Thanks man! Such an awesome tip!

  • @OTadashi162
    @OTadashi162 Před 6 lety +2

    wooow :O
    This will be very helpfull for me
    Thanks a lot man :D

  • @JayadevHaddadi
    @JayadevHaddadi Před 2 lety

    would love a 2022 version of this!
    Also what about other categories like Meshs, levels and others?
    thanks🙏😊❤️

  • @manolol1119
    @manolol1119 Před 3 lety +1

    Is it the best option for players, if i enable cruch compression with 100% compression quality?

  • @proatgaimz
    @proatgaimz Před 6 lety +2

    Thank you!

  • @GenteIdeas3D
    @GenteIdeas3D Před 6 lety +2

    Excellent !

  • @polstax
    @polstax Před 4 lety

    Great man! This information is awesome!!

  • @beside5915
    @beside5915 Před 4 lety

    unbelievably useful video!!

  • @defonten
    @defonten Před 4 lety

    Thanks a lot man! Very helpful!

  • @ioanflorucza2850
    @ioanflorucza2850 Před 3 lety +1

    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?

  • @miguelml94
    @miguelml94 Před 2 lety

    Thanks! It helps me a lot!

  • @gaiarusidletowerdefense8016

    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.

  • @OscarTorresWork
    @OscarTorresWork Před 6 lety

    Great insight thank you!

  • @salmansyed7364
    @salmansyed7364 Před 3 lety

    Excellent👍👍👍

  • @jaypeebolonia4648
    @jaypeebolonia4648 Před 2 lety

    THANK YOU SO SO MUCH

  • @masterboysworld8128
    @masterboysworld8128 Před 3 lety

    ty for the tutorial

  • @niteshsabale6963
    @niteshsabale6963 Před 4 lety +1

    can we reduce the size of included dll files ?????

  • @mamistagames
    @mamistagames Před rokem

    thanks

  • @andregandawida
    @andregandawida Před 6 lety +1

    Thank You! :D

  • @hotlineagatha6755
    @hotlineagatha6755 Před 3 lety

    you re the best man

  • @thespontaneoustomato2676

    you really are the best man!

  • @batuhanartan
    @batuhanartan Před 4 lety

    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.

    • @prateekpanwar646
      @prateekpanwar646 Před 4 lety

      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

  • @VilleJaako
    @VilleJaako Před 6 lety +2

    Great stuff, but isn't 40mb's still way too large build size for a scene with eight spaceships and two audiofiles?

    • @Unity3dCollege
      @Unity3dCollege  Před 6 lety +1

      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

    • @Unity3dCollege
      @Unity3dCollege  Před 6 lety +2

      Note that's also for windows exe builds, it varies per platform though I don't recall the exact sizes atm.

    • @prateekpanwar646
      @prateekpanwar646 Před 4 lety

      You have to compress via winrar or make setup. It'll be way less

  • @SKJagan-dh2ft
    @SKJagan-dh2ft Před 3 lety

    Great one, will this work same for asset bundles?

  • @asdsaddadasddaasdsad6889

    thanks for teaching.Is there anyway to throw away system core libs like networking stuff from Unity Engine before building?

  • @chrisp7414
    @chrisp7414 Před 2 lety

    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?

  • @RJkvideos124
    @RJkvideos124 Před 6 lety +1

    What adds upto the complete size shown in editor log ? To .apk

  • @ozgur-turk
    @ozgur-turk Před 4 lety

    thank so much

  • @privateHandle731
    @privateHandle731 Před 6 lety +2

    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

    • @Unity3dCollege
      @Unity3dCollege  Před 6 lety

      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)?

  • @tvrl9180
    @tvrl9180 Před 3 lety

    legend

  • @hasnainfareed8555
    @hasnainfareed8555 Před 4 lety

    Thanks

  • @Nikooooo-bs
    @Nikooooo-bs Před 3 lety +1

    thxs

  • @zimalshahbazvlogs5255
    @zimalshahbazvlogs5255 Před 5 lety

    thank u so much

  • @4lchemisttyondaime617
    @4lchemisttyondaime617 Před 5 lety

    Awasome video!

  • @DanieleScali
    @DanieleScali Před 4 lety

    well done

  • @CreativesBySablo
    @CreativesBySablo Před 6 lety

    keep it up maaaan

  • @AbdullahGameDev
    @AbdullahGameDev Před 11 měsíci

    Ok cool. But i found another problem the Occlusion Occluded files 📂 are so big. What can i do in this situation sir?

  • @filya1
    @filya1 Před 3 lety

    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?

  • @AlonePirate02
    @AlonePirate02 Před 2 lety

    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

  • @IsayBanj
    @IsayBanj Před 3 lety

    Thanks for the video
    But my file headers are too large 120mb please how can I reduce it I have tried everything

  • @flipthebird6355
    @flipthebird6355 Před 4 lety

    thanks a lot :)

  • @cofeivr2048
    @cofeivr2048 Před 3 lety

    will this work for avatars? trying to make a 27mb avatar to 10mb so i can upload for oculus quest?

  • @AnilKumar-qx5wl
    @AnilKumar-qx5wl Před 5 lety

    where do I found unity editor log to reduce apk size?

  • @emmaamelia5673
    @emmaamelia5673 Před 2 lety

    how to reduce shader size ?

  • @AnkitSingh-wq2rk
    @AnkitSingh-wq2rk Před 3 lety

    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

  • @MayurBhagat10
    @MayurBhagat10 Před 2 lety

    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.

    • @stylie473joker5
      @stylie473joker5 Před rokem

      There's an option to compress meshes in the model import, i suggest medium compression

    • @stylie473joker5
      @stylie473joker5 Před rokem

      czcams.com/video/a9M0DKiJSJo/video.html

  • @bhagyeshpatel8413
    @bhagyeshpatel8413 Před 4 lety

    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?

    • @Unity3dCollege
      @Unity3dCollege  Před 4 lety +1

      Nope, it'll keep those from the build

    • @MiguelFernandez-bg6ut
      @MiguelFernandez-bg6ut Před 3 lety

      Unity keeps all the scripts and all the files included in Resources folder, even if they are not used in the build.

  • @mooooooon9296
    @mooooooon9296 Před 3 lety

    Converting wav to ogg is working for me . is it good?

  • @fatinliyanajamaludin3826

    for my build size, i already reduce textures and images. but how to reduce meshes size. anyone?

    • @stylie473joker5
      @stylie473joker5 Před rokem

      There's an option to compress meshes in the model import, i suggest medium compression

    • @stylie473joker5
      @stylie473joker5 Před rokem

      czcams.com/video/a9M0DKiJSJo/video.html

  • @danielrousseau6541
    @danielrousseau6541 Před 6 lety

    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?

    • @axelman145
      @axelman145 Před 6 lety

      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:

    • @billsimmons5934
      @billsimmons5934 Před 6 lety

      Daniel Rous
      seau

  • @sylvi6269
    @sylvi6269 Před 3 lety

    ofc i dont have a build report in my log files....

  • @camango1
    @camango1 Před 4 lety

    My images still same size in LOg,what can i DO

  • @niteshsabale6963
    @niteshsabale6963 Před 4 lety +1

    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....

  • @svanita
    @svanita Před 4 lety

    I know that one

  • @befree9390
    @befree9390 Před 2 lety

    Thank you!

  • @GeniusK
    @GeniusK Před rokem

    thanks

  • @tahirdevlog2047
    @tahirdevlog2047 Před 6 lety

    Thank you!