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
0
Question by stan4u · Jan 12, 2013 at 04:02 PM · androidoptimizationsizeresourcesapk

android apk size not getting much smaller

Hi,

Then I built my app for android final package of the app had like 20.1 MB. I mean the APK file. I checked unity editor log to see what files were taking most when unity was packing the project. I found on first 5 places 3 fonts like 2,5 MB each and 2 textures that were like 700kB each. So I made font to use my own defined characters instead of UTF8 and that made them significantly smaller like 500k or so. And textures I made half resolution so they ended up like 250kB. So after this I expected final APK to be smaller 6MB. But instead the resulting APK was like 19.5 MB. I double checked editor output and these resources indeed were much smaller. Why is this difference in end package so small? is there some heavy compression happening after what is logged in editor log as info what is size of each resource?

Thanks S.

Comment
Add comment · Show 2
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 QuantumRyan · Feb 05, 2013 at 07:04 PM 0
Share

Perhaps the editor log lists assets, not the imported versions?

You could have a very large image asset in your project, but the import settings (in the Inspector) will change it and that is what goes into the build.

For instance, a 11$$anonymous$$B 2000x2000 B$$anonymous$$P image in a unity asset folder can be set to 64x64 pixels with DTX1 compression in the inspector, which would result in a ~2$$anonymous$$B image. This imported image is the one that is used in the build.

avatar image syclamoth · Feb 19, 2013 at 06:15 AM 1
Share

The excess filesize is probably co$$anonymous$$g from the built-in Unity executable libraries (the stuff that you can't see in your project, because it's always there). Simply, the executable will never be less than about 15$$anonymous$$B because of the Unity engine itself.

1 Reply

· Add your reply
  • Sort: 
avatar image
-1

Answer by Sanky · Feb 06, 2013 at 06:18 AM

you should try Stripping Level from playerSetting option. Also check you image Resolution 1024x1024 it will help you to reduce image size. And delete unused data from your project folder.

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

11 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

Related Questions

I want to separate minigames from my game and download them after APK installation 1 Answer

How to reduce size of android apk 5 Answers

Apk size vs Installed app size 2 Answers

APK size question 0 Answers

50mb limit with Unity 3.5 + Android license (not! pro) 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