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

Huge sharedassets files - How to decrease?

Discussion in 'Editor & General Support' started by intrikit, May 12, 2015.

  1. intrikit

    intrikit

    Joined:
    May 25, 2013
    Posts:
    130
    Hello,

    I am building for PC and there is the .exe file and the corresponding folder. The .exe is a reasonable size at 11mb. The stuff in the folder though is huge, specifically the sharedassets files. How would I go about reducing the sizes of these? My game is close to complete. Will cutting out the unused assets in the project that has accumulated throughout development solve this?

    Thanks in advance!
     
    Drust likes this.
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,998
    Thomas-Mountainborn and intrikit like this.
  3. intrikit

    intrikit

    Joined:
    May 25, 2013
    Posts:
    130
    Thanks! I'll go purchase the Build Report plugin
     
  4. intrikit

    intrikit

    Joined:
    May 25, 2013
    Posts:
    130
    I've purchased the Build Report plugin and it works like a charm. It's extremely informative.

    Just out of curiosity though, is it necessary for all builds to have a corresponding Data folder? Does a marketplace like Steam readily accept this format?
     
  5. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    The unity desktop export structure works that way and that is not a problem.There a lot of games on steam that are made with unity and have the same structure without any problem.
     
    intrikit likes this.
  6. intrikit

    intrikit

    Joined:
    May 25, 2013
    Posts:
    130
    Thank you. So the Build Report lists all the Unused Assets and some are HUGE. I've deleted them but it doesn't seem to make a difference in build size. Is this expected?
     
  7. Nition

    Nition

    Joined:
    Jul 4, 2012
    Posts:
    781
    Yeah, Unity should already have been automatically excluding unused assets from the build.
     
  8. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Unity does excludes all unused assets that are not linked in any scene used. It even strips unused shader variants aggressively.
    Keep in mind that the content of the resources folder will always be included since it can be loaded any time at runtime.
    And the streamingAssets folder that will be just copied over