Everything on Resources folder goes to the build?

I just want clarification, my project is aways structured like this:


Everything is aways under the Resources, but now reviewing the documentation it says:

Resource Folders are collections of assets that are included in the built Unity player, but are not necessarily linked to any GameObject in the Inspector.

So, even if the asset is not used, just being under Resources will make it in to the build?

more ▼

asked Jan 15, 2013 at 06:44 PM

Paulo Henrique gravatar image

Paulo Henrique
1.1k 41 45 73

I would think so, as the idea is that stuff in Resources isn't necessarily loaded at startup. So it may or may not ever get loaded. I'm not sure it bundles in all file types though? Even so I think it would because you might have your own parser.

Jan 15, 2013 at 08:36 PM DaveA
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Resources are always included, so if you're trying to save space in output, you will HAVE to move them out of a Resources directory.

But if you happen to tag your GameObject as "EditorOnly", it will not be included along with its non-Resource dependencies.

The other way which may or may not be able to exclude files (I don't think you can), is to write your own Debug class. You can stop it from working outside Unity by using a check:


Just use that condition everywhere in your class to stop it from running outside of the editor, on client machines.

Hope this helps

SOURCE : http://answers.unity3d.com/questions/23761/can-i-exclude-specific-assets-in-assetsresources-f.html

more ▼

answered Jan 15, 2013 at 08:55 PM

Karsnen_2 gravatar image

856 152 147 162

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Jan 15, 2013 at 06:44 PM

Seen: 2772 times

Last Updated: Jan 15, 2013 at 08:55 PM