Search Unity

question about file size of web deploy when using system.io

Discussion in 'Editor & General Support' started by azuretttc, Dec 17, 2009.

  1. azuretttc

    azuretttc

    Joined:
    May 8, 2009
    Posts:
    75
    When my project is build into a web streaming case. The file size become very large(more than 1mb when only have scripts). I find I have found that I used System.convert and System.io, I'm wondering are the system dlls also packed into the unity3d file when deploying into web? if so, why? Since the player have already installed mono , why should wrap these dlls into unity3d file to increase the file size?
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    The webplayer install only contains the minimum, it does not install specific frameworks. Otherwise it would be significantly larger.

    Any additional framework is built into your deployed webplayer.

    As for System.IO: please keep in mind that the webplayer can not access any local files, processes or the registry. Your local access is restricted to the PlayerPrefs.
     
  3. azuretttc

    azuretttc

    Joined:
    May 8, 2009
    Posts:
    75
    thanks, I have found that the file size increasing comes from the "eval" function which parse the json into Boo.lang.hash

    without the "eval" function, my build is 60KB, however, with it, it becomes 1200KB, why does the eval so large?