Search Unity

Scene sizes are too big

Discussion in 'Editor & General Support' started by astanid, Jun 23, 2022.

  1. astanid

    astanid

    Joined:
    Apr 5, 2021
    Posts:
    145
    On hard drive in windows explorer scne files occupy around 80mb. in zip archieve - 5 mb.
    But if i compile into apk with LZ4HC compression size is even bigger. what's up ?
    upload_2022-6-23_1-30-38.png
    how can i find out what consumes so much space ?
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,060
    Lz4hc always has big sizes. I recommend using regular compression.
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,442
    sometimes it helps to copy paste gameobjects from scene A into new scene B and suddenly new scene size is smaller..
    (not sure whats the reason, but has happened several times for me, so worth to try if scene size is issue..)
     
  4. astanid

    astanid

    Joined:
    Apr 5, 2021
    Posts:
    145
    but there're 10 scenes ) i don't know what exact one causes trouble
     
  5. astanid

    astanid

    Joined:
    Apr 5, 2021
    Posts:
    145
    almost same result with lz4 :(
     
  6. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,442
    can see in windows explorer, the scene sizes, if some of them are much bigger than others?

    i think using prefabs also reduced scene sizes.
     
  7. astanid

    astanid

    Joined:
    Apr 5, 2021
    Posts:
    145
    all scenes consist out of prefabs :)
    upload_2022-6-24_15-21-0.png
    i really can't understand what consumes so much space...
     
  8. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,190
    Prefabs only exist within the context of the editor. When you make a build every prefab in a scene is unpacked into its respective game objects and saved along with all of its parameters. You're not making a game smaller by using them. You're just making your life easier within the editor.
     
    Last edited: Jun 24, 2022
  9. astanid

    astanid

    Joined:
    Apr 5, 2021
    Posts:
    145
    So is there any way to determine what consumes so much space ? with 100mb levels i can'r really add anything more...
     
  10. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,060
    Build logs?
     
  11. astanid

    astanid

    Joined:
    Apr 5, 2021
    Posts:
    145
    they don't tell you what is inside scene files :(
    In fact i found one problem. PolyBrush script components left in prefabs were heavy. No my levels are 65mb instead of 100. But there's still smth else...
     
  12. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,060
    That's probably just unity
     
  13. astanid

    astanid

    Joined:
    Apr 5, 2021
    Posts:
    145
    I found the reason. I used Poly Brush to draw vertexes for some fancy shader - and looks like this data stayed in the wring places... still thinking how to fix it though :)