Search Unity

Question Adding VS adds lots to builds (My concert is with WebGL mostly)

Discussion in 'Visual Scripting' started by JayadevHaddadi, Jan 18, 2023.

  1. JayadevHaddadi

    JayadevHaddadi

    Joined:
    Nov 9, 2020
    Posts:
    12
    Hello Unity and all,

    I have a project that I build for different platforms. I am very concerned with my build sizes, especially WebGL. My Current WebGL build is around 20 meg with Brotli compression. But with VS it is around 15 meg more, which is quite a large increase.
    Is there any way to get around this hefty cost?

    Thanks
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,058
    I don't think there will be a workaround for this. The best you can do is increase il2cpp striping, and enabling engine striping
     
    JayadevHaddadi likes this.
  3. JayadevHaddadi

    JayadevHaddadi

    Joined:
    Nov 9, 2020
    Posts:
    12
    Increasing il2cpp stripping beyond minimal breaks VS.

    I realized VS actually doesn't seem to impact size much, it's just that one can not use code stripping.

    Thanks!
     
    DevDunk likes this.