- Home /
When compressing assets for .APK does whole projects assets get included? or just the scenes assets? prefabs?
Im trying to keep filesize good and small on android devices, so im curious, and couldnt find any information on this...
do all assets from my projects hierarchy get included in the APK for android? if not, do all the prefabs get included?
does unity know to take only the "used" prefabs/assets?
Im hoping someones informed about this, because if it is packing all my assets from the whole project, then there must be a bunch of wasted space...
PS, tried making a junk prefab with tons of primitives, and im not sure if that would be enough to even make a difference, but it didnt seem to increase the file size at all...so if nobody else answers before tomorrow, im answering it as "no, it doesnt include your whole projects stuff" and marking my own answer as awesome :)
To the best of my knowledge, unity will only include referenced assets in builds. So if you don't use something, it doesnt get packed.
Answer by Paulius-Liekis · May 07, 2012 at 11:55 AM
It includes only reference assets, i.e. build settings define which scenes should be included and the references are traced from there. StreamingAssets folder is included always (if you have one) no matter if you reference assets from it or not.
cool, I had figured as much, wanted to know for sure! thank you.
Your answer
Follow this Question
Related Questions
Android build error aapt.exe after latest SDK updates today 0 Answers
blank screen when apk is installed on phone 1 Answer
Problem with building apk file for android 0 Answers
Split Application Binary for Android build - main APK is still over 50 MB 1 Answer
Failed to re-package resources using everyplay plugin and google play plugin for leaderboard 0 Answers