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

What is included in the built game data (data.unityweb)?

Discussion in 'Web' started by any_user, Sep 19, 2018.

  1. any_user

    any_user

    Joined:
    Oct 19, 2008
    Posts:
    374
    I'm doing some WebGL test builds. In a nearly empty project, the total size of source assets is less than 500KB. the build is made from a single, nearly empty scene (one sprite renderer with camera).

    Screen Shot 2018-09-19 at 10.50.05.png

    But the output data file is much bigger than that, uncompressed it's a 7.9MB file, compressed 1.5MB. I'm only looking at the data file, not the code/framework ones. It's exported with 2018.2.8, webassembly, release build, gzip compression.

    What could be the issue here? Is there anything else included in the data file except the source assets and the scene?
     

    Attached Files:

  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    the data file also contains il2cpp metadata
    The data file includes scenes assets, Resources folders assets, unity default resources and il2cpp metadata.
     
    asimdeyaf likes this.
  3. any_user

    any_user

    Joined:
    Oct 19, 2008
    Posts:
    374
    Thanks, that's helpful.

    Is it possible that the il2cpp metadata is 7MB uncompressed size? And if that's the case, is the metadata required for running or is is it just for debugging?