Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
This question was closed Nov 19, 2016 at 09:09 PM by SgtShadowWalker.
avatar image
8
Question by SgtShadowWalker · Mar 07, 2016 at 12:41 PM · unity 5buildunity5game

Does Unity pack all files from the project in the build?

It's probably a stupid question, but I'm just wondering.

Let's say you have 100 files in your Unity project, but your game only uses 50 of those files. So when you build the game, will Unity include all 100 files (used and unused) in the game build, or just the 50 that you used?

Comment
Add comment
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

2 Replies

  • Sort: 
avatar image
18
Best Answer

Answer by tanoshimi · Mar 07, 2016 at 01:43 PM

  • If they're referenced by an object instantiated in a scene anywhere, they'll be included.

  • If they're placed in the /resources folder, they'll be included.

  • If they're an "orphan" - placed in the assets directory but not referenced by anything or used anywhere, they won't be included in a build.

Comment
Add comment · Show 2 · 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 SgtShadowWalker · Mar 07, 2016 at 01:47 PM 0
Share

Thank you! That is exactly what I wanted to know. I released a small test game a few months back and realized today that there were still a lot of unused (copyrighted) placeholder files in the assets folder. But I'm pretty sure they aren't referenced anywhere.

avatar image jethrogillgren · Mar 01, 2018 at 12:46 PM 0
Share

"a scene anywhere" - does this mean that if you do not include a scene in the build, unity still packs that scenes objects?

avatar image
3

Answer by Geoxion · Mar 07, 2016 at 03:34 PM

No, unity tries to be smart about it and pack the least amount of files. There are some exceptions though.

All files in resources and streamingassets folders will be included. Files from the Editor folders will not be included. All other files won't be included when they're not used.

http://docs.unity3d.com/Manual/SpecialFolders.html

Comment
Add comment · 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

Follow this Question

Answers Answers and Comments

76 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image 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

Why I don't see objects after building game? 0 Answers

Build Size 0 Answers

(DISSOLVED) Error : Failed to build apk. (Unity 2017.2.0f3) 2 Answers

i have an error i don't recognize it 1 Answer

How to make a cleaning effect similar to the one in dumb ways to die? 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