Indirectly referenced stuff remains in memory until all references are released.Ĭomparing asset references using = or Equals WILL NOT WORK if:įirst asset is referenced in a scene and the second one is in a bundle.įirst asset is referenced in one bundle while the second one is in another bundle.įirst asset is referenced by one scene and the second one is referenced in another scene.įirst asset is referenced in a bundle and the second one is referenced in the same bundle. Unity bundles AND SCENES have 4 GB (2 GB for older versions) size limitation. All subsequent level files will just refer to the first one and load it on demand.Īn asset packed by scenes AND bundles is actually duplicated. While Unity packs scenes during build, when a shared asset is met it will be packed in the first level in the build list that is met. There are 4 ways assets are packed and loaded: Scenes, Resources, Bundles, StreamingAssets As a follow-up to our last Unity References Basics post, Snapshot Games’ Filip Slavov shares some more behind-the-scenes tips for aspiring developers coding in Unity, and explains how in our game, Phoenix Point, a bug around the Technician’s mech arms animation happened! TL DR
0 Comments
Leave a Reply. |