Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by Paulo-Henrique025 · Jan 15, 2013 at 06:44 PM · buildassetsresources

Everything on Resources folder goes to the build?

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

     Resources
       ->Models
       ->Prefabs
       ->Audio
       ->Etc

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?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DaveA · Jan 15, 2013 at 08:36 PM 0
Share

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.

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Karsnen_2 · Jan 15, 2013 at 08:55 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:

 if(Application.isEditor)

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

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image denizboz · May 28, 2020 at 01:27 PM 0
Share

I wish this was true. Unity keeps excluding some of my files in build. Still trying to figure out what is the problem.

avatar image Bunny83 denizboz · May 28, 2020 at 01:45 PM 0
Share

Note that files in the Resources folder are of course only included if they are actual asset types that are recognised by Unity. It's all about the AssetDatabase. If you put unsupported file types in that folder they are of course ignored. If you want to include raw files you should use the Strea$$anonymous$$gAssets folder. Unity doesn't care about what type of files you put in there. They are just copied verbatim / as they are when you build your game. However some platforms like Android are a special case since the files are packed into the APK file and can only be accessed through a UnityWebRequest with a special URI.


Anyways if you have an actual question, please ask a seperate question.

avatar image denizboz Bunny83 · May 28, 2020 at 02:18 PM 0
Share

Well, thanks, but I said I'm trying to figure out, I did not ask :) $$anonymous$$y point was the answer here is a bit misleading cause it says "Resources are always included". That is not the case, as you've just confirmed.

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

Load resources the scene depend on but not in "Resources" folder 1 Answer

Can I exclude specific assets in Assets/Resources from the build? 6 Answers

How To Refresh Resources Folder in Build? 1 Answer

Is Standard Assets compatible on Android or IOS? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges