- Home /
Splitting up the sharedassets file
I notice that when I make a build from unity, the items in my Resources folder go into a sharedassets0.assets file.
To me that zero in the filename implies that I could have these assets split up into sharedassets0..1..2 etc.
Is that possible?
I know I could do this same thing with AssetBundles but that isn't an option for us, for some complicated reasons that I won't go into.
Answer by Joachim Ante · Apr 07, 2010 at 11:11 PM
You can place items in your Resources folder into later sharedassets files in Edit -> Project Settings -> Player by changing the firstStreamedLevelWithResources value.
That refers to assets you put in your levels. I'm talking the Resources folder, which is for assets that are not placed into a level at design time.
The firstStreamedLevelWithResources property changes behaviour of assets in the Resources folder.
Answer by Ran_Intendu · Nov 07, 2016 at 06:34 PM
sharedassets0.assets contains all assets that are being referenced by the first scene in build (Build Settings -> Scenes in Build). sharedassets1.assets contains all assets that are being referenced by the second scene in build and weren't referenced already in the previous scene. And so forth.
Cookie for you! So if I change an asset that is referenced by level 1 then all subsequence sharedassets change...