- Home /
Excluding resources when building
I'm using several plugins bought from Asset Store. There are many files such as documentation (pdf, etc.) included in those.
Should I delete them before building to reduce build size or Unity will automatically exclude those?
Answer by tanoshimi · Oct 24, 2014 at 04:23 PM
No need - if they're not used in your game, they won't be included in your build. The only exception to this is files in the /Resources subfolder, which are always included.
Answer by eppz · Jul 15, 2017 at 12:36 PM
Since 5.3.2 you can exclude files and folders from build with "~" suffix. See 5.3.2 Release Notes (687655), and the updated Unity - Manual: Special folder names.
The ~ suffix excludes assets from being imported into a project. The OP is asking how to exclude assets from being compiled in a build.
The ~ suffixed content won't be compiled in the build either.
I not meant as an answer directly, more of a reference, as this page is a result for "exclude files build" Unity Google searches.
Your answer
![](https://koobas.hobune.stream/wayback/20220613165848im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Enormous Build Size! Help? 0 Answers
How to create a BuildOptions mask in the Editor Window? 2 Answers
Distribute terrain in zones 3 Answers
Error building Player: Win32Exception 1 Answer
What are Explicit Null Checks for? 1 Answer