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

Reducing build size for a UI game

Discussion in 'Editor & General Support' started by bostudio, Jan 25, 2019.

  1. bostudio

    bostudio

    Joined:
    Nov 28, 2017
    Posts:
    20
    Hi guys,

    I am developing a game where I use only UI, and you know that the build size for a Unity empty project is huge even with an empty scene. At first, the size of the game was about 40 Mb. I managed to reduce the size to 25 Mb by targeting only ARMv7 processors. I also disabled the packages I am not using in the package manager.

    I think that even 25 Mb is too big for such a small app, if you have guys any ideas on how to reduce the size even further please let me know.

    The editor log shows this after building

    Code (CSharp):
    1. Build Report
    2. Uncompressed usage by category (Percentages based on user generated assets only):
    3. Textures               29.2 mb     63.7%
    4. Meshes                 0.0 kb     0.0%
    5. Animations             0.0 kb     0.0%
    6. Sounds                 4.4 mb     9.6%
    7. Shaders                8.1 kb     0.0%
    8. Other Assets           3.8 mb     8.3%
    9. Levels                 434.0 kb     0.9%
    10. Scripts                1.6 mb     3.5%
    11. Included DLLs          6.3 mb     13.7%
    12. File headers           93.9 kb     0.2%
    13. Total User Assets      45.8 mb     100.0%
    14. Complete build size    153.1 mb
     
    deus0 likes this.
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,454
    Here are a few aticles/videos that contain information on how to reduce build size.

    Settings to bring an unity default scene with Camera down to 6.25 MB
    https://forum.unity.com/threads/how-to-reduce-the-android-app-build-size.438119/#post-3995581

    Reducing the file size of your build
    https://docs.unity3d.com/Manual/ReducingFilesize.html

    Reduce the APK size
    https://developer.android.com/topic/performance/reduce-apk-size


     
    eccece, Voaji, Moonjump and 1 other person like this.
  3. bostudio

    bostudio

    Joined:
    Nov 28, 2017
    Posts:
    20
    Thank you so much peter77, the suggestions are very helpful.
     
  4. MNNoxMortem

    MNNoxMortem

    Joined:
    Sep 11, 2016
    Posts:
    723