Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Windows Build Folder HUGE! 400+ MB

Discussion in 'Editor & General Support' started by Hearthdale, Aug 11, 2015.

  1. Hearthdale

    Hearthdale

    Joined:
    Jul 11, 2015
    Posts:
    3
    Okay, I looked in the Editor Log and saw I had some really large textures. I trimmed them down and my editor log now looks like

    Unloading 902 unused Assets to reduce memory usage. Loaded Objects now: 2507.
    Total: 7.812678 ms (FindLiveObjects: 0.257162 ms CreateObjectMapping: 0.084105 ms MarkObjects: 7.142115 ms DeleteObjects: 0.328153 ms)


    Textures 57.9 mb 75.7%
    Meshes 5.7 mb 7.4%
    Animations 454.1 kb 0.6%
    Sounds 1.0 kb 0.0%
    Shaders 3.9 mb 5.0%
    Other Assets 2.2 mb 2.9%
    Levels 1.4 mb 1.8%
    Scripts 806.5 kb 1.0%
    Included DLLs 4.1 mb 5.3%
    File headers 200.0 kb 0.3%
    Complete size 76.5 mb 100.0%

    76MB I can live with! But the output builds an EXE which is about 15mb (I can live with that) and a [mygamename]_data folder.

    That fold is HUGE! Peeking in side I have a resources.resource file that is 327mb! What is it? I've imported a lot of assets into my project, but I'm not using all of them. I'm assuming the build process weeds unused assets out!?

    So, what am I missing here? I've trimmed and trimmed my textures until they are ugly! I'm missing something for sure!

    Any advise is VERY welcome.
     
  2. Hearthdale

    Hearthdale

    Joined:
    Jul 11, 2015
    Posts:
    3
    Update!... I just deleted the offending 335 mb resources.resource file and the game still worked!... Go figure!
     
  3. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Unity will include all assets Into your build that are included in your Resources folder, since they could be loaded at any time.
    Just check what's in that folder and throw it out if you not need it.
     
    Hearthdale likes this.
  4. Hearthdale

    Hearthdale

    Joined:
    Jul 11, 2015
    Posts:
    3
    fffMalzbier, THANK YOU! Either I inadvertently drug an asset to that folder or it imported into that folder. It was my entire music collection! LOL. I knew had to be something I was over looking.

    Problem solved!