Search Unity

List of engine components that WebGL build can strip

Discussion in 'Web' started by tiggus, Mar 10, 2015.

  1. tiggus

    tiggus

    Joined:
    Sep 2, 2010
    Posts:
    1,240
    I just started tinkering around with this and I am curious if there is a list(or one can be made) showing dependencies of components on engine internal frameworks so we can optimize build size.

    For example, the documentation states that if you use no physics capabilities that the entire physics framework will be stripped out, can we translate that to: no colliders, rigidbodies, etc.

    I think this is important to understand so we can get smallest builds possible and we might unknowingly be using just one minor component that pulls in an entire framework that we could otherwise strip.
     
    GarBenjamin likes this.
  2. boogsarah

    boogsarah

    Joined:
    Mar 5, 2015
    Posts:
    7
    We agree that this would be valuable info for our dev efforts as well.
     
  3. tiggus

    tiggus

    Joined:
    Sep 2, 2010
    Posts:
    1,240
    Also a rough estimate of sizes for the strippable components would be fantastic. Ie. if something is 20k I'm not too concerned about it, if it is 3MB that's another story.