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 Jolurawa · Aug 11, 2016 at 05:31 PM · animationandroidsizeapk

How to keep apk size low when using large 2d animations?

I'm making a 2d android game which will consist of a series of fights against single enemies that take up most of the screen. So far i've animated and implemented one enemy, but the size of the apk increased dramatically due to the images used for the animations. I intend to have many more enemies and if it continues at this rate then the apk size will be ridiculously large.

The enemy animations are made of several individual 2048x2048 images compressed to 1024 at the moment.

The enemy needs to appear clear on the screen and any compression lower than 1024 makes it appear pixelated.

So basically i'm not sure how to have a large (almost filling up the whole screen) 2d animation that looks good and doesn't increase the apk size by too much. Can anyone point out what i'm doing wrong?

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 theANMATOR2b · Aug 11, 2016 at 08:32 PM 0
Share

Game is being developed for PC?

avatar image Jolurawa theANMATOR2b · Aug 11, 2016 at 08:43 PM 0
Share

No, it's for android devices

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by DiegoSLTS · Aug 12, 2016 at 03:58 AM

Maybe some of this can help you: https://docs.unity3d.com/Manual/ReducingFilesize.html

Anyway, having a lot of really big images will generate a big APK, that's hard to avoid. Maybe you should consider using Bone-Based animations like it's done for 3D models. A quick google search pointed me to this tutorial (might be outdated).

EDIT: Note that if you create an empty Unity project with an empty scene, the APK generated is bigger than 10MB, so no matter how much you can compress your images, the minimium size of a game is usually higher than 20MB. If size is a priority maybe Unity it's not the best engine for your game, I tested Defold once and building an empty project created a ~3MB APK.

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
1

Answer by liortal · Aug 12, 2016 at 09:20 AM

If your only issue is APK size, you should separate this content from your game (using Asset bundles for example).

If the content isn't available right away when loading the game, you should be able to start the game and load it in the background, so it will be available once it's needed.

There could be other potential issues with huge animations, such as large memory usage, but you did not specify whether that is an issue right now.

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

6 People are following this question.

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

Related Questions

android apk size not getting much smaller 1 Answer

Android APK size way too large 2 Answers

Size of texture after building too big 2 Answers

launching unity app from android 0 Answers

How to reduce size of android apk 5 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