- Home /
If a file is inside a Resource folder, but is NOT used in the scenes of the build, does it get excluded?
I'm really hoping for a "YES" ;-;
... using unity 2021 btw
I'm not using asset bundles and addresseables because i can't get them to work and don't understand how to handle them.
Comment
As in ... I'm "hoping" Unity will go through my scripts, and if it sees a path that doesn't get referenced, it doesn't put it in the build.
Answer by Casiell · Jan 05 at 01:02 PM
Everything in Resources folder gets put into a build. Unity doesn't check your code for paths. This would actually rarely work, because usually (at least in my experience) the path is not hardcoded, but generated in some ways. And in this case it's not really possible to check which assets could be used
Your answer
![](https://koobas.hobune.stream/wayback/20220613051310im_/https://answers.unity.com/themes/thub/images/avi.jpg)