Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to reduce Build Size

Discussion in 'Web' started by uc-mah, Sep 19, 2017.

  1. uc-mah

    uc-mah

    Joined:
    Aug 11, 2017
    Posts:
    14
    Hello Sir,

    I created 1 3d project with 1 3d object like cube and then publish it to webgl. It create build folder, Template data and index.html file. Size of build folder is 200MB that is horrible. I am confuse with build folder, is this folder necessary, is there any possibility for decrease build folder size. If suppose i will upload these folder on server. does this build folder is necessary for first time or it is necessary for every project i.e build folder is global for every project or i need create build folder separately for different different projects.
     
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Is development build option disabled? is Strip Engine Code enabled?
    if not, your build will be larger than necessary.
    Everything we generate is necessary for your web content to run and cannot be shared between projects (although some code is the same)

    For more information on how to reduce distribution size, I recommend to start by having a look at the manual (Distribution size and Asset Bundles paragraph).
     
  3. uc-mah

    uc-mah

    Joined:
    Aug 11, 2017
    Posts:
    14
    Hi Marco,

    Thanks for your response. Now i successfully publish it with in range.