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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Big Asset Bundle size

Discussion in 'Editor & General Support' started by Wrymnn, May 30, 2016.

  1. Wrymnn

    Wrymnn

    Joined:
    Sep 24, 2014
    Posts:
    352
    I am packing one Scriptable Object instance into asset bundle. On my disk, the scriptable object has 1kb. However, when I pack it into Asset Bundle, the final bundle has size of 4.5MB, why?

    I am sure that only that file is packed, since its listed in bundle info.

    Any advice?
     
  2. crispybeans

    crispybeans

    Joined:
    Apr 13, 2015
    Posts:
    210
    Maybe the Scripting object is referancing itself somewhere and it gets recusively serialized, just a thought...
     
  3. Diet-Chugg

    Diet-Chugg

    Joined:
    Jul 4, 2012
    Posts:
    51
    If scriptable object references other audio textures etc. and those assets are not bundled as their own label. they will be included as part of the scriptable object. (Same goes with prefabs btw)