- Home /
Extra Files in Assets
When using an asset from the Asset Store, there are extra files in there such as Demos. Obviously, we do not want these demos in the final product.
When publishing, does Unity automatically exclude these irrelevant files? Or do we need to go through all of our downloaded assets and determine what is needed and what should be deleted?
Answer by JoshKingsbury · Sep 13, 2014 at 08:12 PM
I believe I've found the answer to your question here:
http://docs.unity3d.com/Manual/ReducingFilesize.html
Unity strips most unused assets during the build, so you don’t gain anything by manually removing assets from the project. The only assets that are not removed are scripts (which are generally very small anyway) and assets in the Resources folder (since Unity can’t determine which of these will be needed and which won’t).
What I take away from this is that anything that is not referenced directly in one of the scene files included in the Build (assigned in the build menu), is not included in the final build. So the Demos and other files would be excluded.
If you want to test which files are included, the link above also talks about viewing the Editor Log which details which files are, and are not included in the build.
Answer by Fanttum · Sep 13, 2014 at 07:59 PM
When you make a build Unity will go and only use the assets that are a part of the scenes in your build. So no worries about extra unused assets in your build, Unity will take care of that for you. Well isn't that nice of you Unity :)
Your answer