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 Kamal124 · May 03, 2015 at 09:26 PM · sizefileapklibrary

how to reduce library size?

Do i have same size of library files included in my apk when making game

  1. with or without any physics, lights, particle system, audio, network play etc.

  2. or making 2d or 3d game

I mean to say, does it include any data(code or library) to run any of these. sorry if my question is confusing.

The problem is when i created an empty android project with only camera in it, the apk size is about 14mb. When i installed it on my android, it take total 31mb.

And when i extract the apk file on pc its size is 36mb and inside that, library files are 30mb. so is there a way or solution for that.

if (all libraries related to physics, lights, network, etc are included) Then

{ Is there an option to use them optionally to make my library size small according to my project requirement. }

and i m using unity 4.6

again apologies for my confusing question :)

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

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

Answer by DoTA_KAMIKADzE · May 03, 2015 at 09:31 PM

In Android PlayerSettings under OtherSettings you can use .net 2.0 subset, also you can change DeviceFilter from default(ARMv7+x86) to the one you need (one of those 2). Also read THIS and remember to remove everything unneeded from assets folder.

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 Kamal124 · May 05, 2015 at 11:27 AM 0
Share

Thanks it really helpful, but I also want to know, if the library size also vary with the requirement of my project. Let say if i don't want physics, or lighting, or any other features, then does that reduce my library size too.

avatar image DoTA_KAMIKADzE · May 05, 2015 at 12:04 PM 0
Share

Well you can modify and strip down Unity dlls either before build or even after (unpack .apk, then do whatever you want and pack it back) but because Unity have an option for "source code license" I'm not so sure that it will be legal without that license, moreover in license be it PRO or Personal you've agreed to not decompile and reverse engineer, so well you got the point.

P.S. As far as I know currently there are no legal ways to do so, unless you're ready to buy their source code license.

avatar image Kamal124 · May 05, 2015 at 01:45 PM 0
Share

Thanks DoTA_$$anonymous$$A$$anonymous$$I$$anonymous$$ADzE :)

avatar image
1

Answer by safak93 · May 05, 2015 at 12:57 PM

One thing I would add to this question:

"Unity will soon be compressing all game data, solving size problems on mobiles. Watch the release notes."

Source: http://forum.unity3d.com/threads/unity-is-not-a-serious-2d-game-dev-platform-without-support-for-lossless-texture-compression.309171/#post-2087386

Comment
Add comment · Show 1 · 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 Kamal124 · May 05, 2015 at 02:05 PM 0
Share

thanks :).

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How to reduce apk size to its minimum? 6 Answers

My build size randomly doubled Andriod 1 Answer

Why does unity change the APK file size after build? 1 Answer

Apk Double the size of the report from Editor Log 0 Answers

Android APK size way too large 2 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