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 /
avatar image
1
Question by kuos · Jul 02, 2016 at 07:25 PM · mobilefile size

Reducing file size - Mobile build

I noticed that my game of 3 scenes: Start Menu, Game, Game Over+Score scenes with very few sprites caused the file size to be upwards of like 50 MB. I am led to believe that Unity includes extra files that are increasing the size or I need to really optimize.

Do multiple scenes play that bad of a role in file size? I never paid much attention about the size of the file until I tried making games for mobile devices.

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

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by tanoshimi · Jul 02, 2016 at 09:26 PM

No, additional scenes cause very little overhead. It's your assets - textures, audio etc. that use up the majority of your build, + about 15Mb overhead for the runtime libraries. Immediately after creating a build, look at the editor log for a breakdown of filesize of all the components included in the 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 kuos · Jul 04, 2016 at 08:24 AM 0
Share

@tanoshimi I was able to locate the editor log, but I am still unsure of which files/elements are responsible for most of the file size.

avatar image Jessespike kuos · Jul 04, 2016 at 08:27 PM 0
Share

The editor log sorts the assets by size. What files are the top of the list? If there are textures that are 16 $$anonymous$$B or larger, then you can probably compress those.

avatar image
1

Answer by Petch12 · Jul 04, 2016 at 09:22 PM

You might need to compress your textures to a much lower res, also any audio assets you include are going to increase file size dramatically unless you heavily compress them.

As far as I'm aware added scenes shouldn't increase the file size too much however you could try and making it so all your scenes load in just one main scene. In my opinion it would be best to do this as when developing for mobile I find loading between scenes takes an age (this might just be my device though)

Hope you find this helpful.

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

Answer by iamrahulmaurya · Jul 05, 2016 at 06:00 AM

@kuos check this link https://docs.unity3d.com/Manual/ReducingFilesize.html

well you can check which is increasing the file size clicking

Console tab ->Open Editor Log-> and look for these

Player size statistics Level 0 'Assets/Loader.unity' uses 459.0 KB compressed / 1.6 MB uncompressed. Level 1 'Assets/Game.unity' uses 2.3 MB compressed / 7.8 MB uncompressed. Total compressed size 2.8 MB. Total uncompressed size 9.4 MB.

Textures 3.9 mb 41.2% Meshes 2.3 mb 23.9% Animations 679.1 kb 7.0% Sounds 0.0 kb 0.0% Shaders 538.1 kb 5.6% Other Assets 653.8 kb 6.8% Levels 147.8 kb 1.5% Scripts 453.3 kb 4.7% Included DLLs 136.0 kb 1.4% File headers 747.4 kb 7.8% Complete size 9.4 mb 100.0%

Used Assets, sorted by uncompressed size: 277.1 kb 2.9% Assets/Player/Human.blend 264.1 kb 2.7% Assets/Player/Orc.blend 216.1 kb 2.2% Assets/Monsters/Foo.blend 213.0 kb 2.2% Assets/Dungeon/Dungeon.blend 170.8 kb 1.8% Assets/Monsters/FooSkin.png

Then you can accordingly decrease the size. Hope this help ;)

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

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

50 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

Related Questions

I have problems with the Camera.ortographic to adapt the view to screens with different resolutions. 2 Answers

Basics of Analytics 0 Answers

How to get data from a connected bluetooth device. (iOS / Android) 0 Answers

Built game resolution stretches 0 Answers

How do I make a bowling ball curve and gain friction in certain points? 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