I just want clarification, my project is aways structured like this:
Everything is aways under the Resources, but now reviewing the documentation it says:
So, even if the asset is not used, just being under Resources will make it in to the build?
asked Jan 15 '13 at 06:44 PM
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
answered Jan 15 '13 at 08:55 PM