Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question File is WAY bigger than it should be, can't publish

Discussion in 'Getting Started' started by meloncoco, Sep 25, 2022.

  1. meloncoco

    meloncoco

    Joined:
    Sep 25, 2022
    Posts:
    4
    Hello,

    I am currently doing the tutorials. I am now at the part where I made a game with a ball, getting on some track, and not hitting the bottom. It is very simple, very minimal, not textures because I wanted to move on to learn more..... but my game is build size: 3,95 GB.

    This should not be possible with how small this game is, but somehow it turned into this.

    Now I am kind of stuck because I want to finish that tutorial before moving on. What did I do wrong?

    I am using WEBGL for this.
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,084
    DevDunk likes this.
  3. RichAllen2021

    RichAllen2021

    Joined:
    Jul 19, 2016
    Posts:
    651
    1) 3.95 Gb is rather big
    2) Don't use WebGL, it obviously makes the file sizes too big.
    3) Nobody uses WebGL anyway, build it for either standalone PC or Android/Iphone.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,009
    WebGL is definitely being used. Depends on your target audience etc.
    The latest lts also has better WebGL compression.
     
  5. meloncoco

    meloncoco

    Joined:
    Sep 25, 2022
    Posts:
    4
    I already checked that, but I could still not figure out how that would be the problem:

    Textures 0.0 kb 0.0%
    Meshes 0.0 kb 0.0%
    Animations 0.0 kb 0.0%
    Sounds 0.0 kb 0.0%
    Shaders 62.8 kb 23.9%
    Other Assets 3.7 kb 1.4%
    Levels 0.0 kb 0.0%
    Scripts 156.5 kb 59.6%
    Included DLLs 0.0 kb 0.0%
    File headers 39.4 kb 15.0%
    Total User Assets 262.5 kb 100.0%
    Complete build size 6.5 mb
     
  6. meloncoco

    meloncoco

    Joined:
    Sep 25, 2022
    Posts:
    4
    Thanks for the tip. For my own future project, I will consider different ways, but this was for the tutorial, and it is good to figure out what went wrong. Ofcourse if no one knows, I'll leave it as is, but I'd like to try. :)
     
  7. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,009
    What did you include in the zip of the build? IL2CPP cache also is in the same Directory maybe. A screenshot of the directory of the build might be helpful.

    And what unity version do you use? 2021 lts?
     
  8. meloncoco

    meloncoco

    Joined:
    Sep 25, 2022
    Posts:
    4
    I do use 2021.3.10f1.
    For IL2CPP I chose smaller builds.
    I am not sure what Directory you mean exactly. From what I can see, the map with all the documents for this project and it says it onl contains less than 550mb.
     
  9. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,009
    What is in the game zip file?
    Also the folders with DoNotShip (which you, well, shouldnt ship)?
     
unityunity