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 /
avatar image
0
Question by swap96 · May 25, 2016 at 01:10 PM · unity 2doptimizationspritesbuild settings

Tips of Reducing the size of Build?

I am making a 2D game in Unity and using a large number of png images as sprites. I have a total of about 1000 png images as sprites and after importing to unity each file has a size of 0.7 MB if I use resolution of 512. After building the total size of the folder becomes around 1.2 GB which is quite huge. Any tips on how to reduce the build size?

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
2
Best Answer

Answer by Jason2014 · May 28, 2016 at 02:48 PM

Make every sprite format as "Crunched" and set compression quality to maximum. This will drastically reduce import size. However, you can slightly damage quality, but in a distance this will be completely invisible.

You can try reduce import size too. Look at your game and ask yourself question: "Do I really need that image size?".

Mipmapping selected also increases image size. If you do not know what is it check this: Mipmap

And most important if you really have this huge amount of images, "pack" some of them into one big file. This is a sprite "sheet". In your case when someone have a lot of separated sprites, making them as a single sprite sheet will be better A LOT (at least for much "cleaned" folder). Then you have to check "Multiple" sprite type and separate them as a grid.

Have you any music files when are longer than sounds? Try to reduce them quality. If you have 320kbps for example, reducing them to 256kbps will give no difference but can at least slightly reduce import size. You can use Audacity to this operation.

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 swap96 · May 29, 2016 at 09:06 AM 0
Share

Thanks this was precisely the reason for the huge build size. Apparently I was using different png images as sprites. When I compiled them all in a single sprite sheet the size reduced drastically.

avatar image
0

Answer by alemas · Nov 12, 2017 at 02:17 AM

I used this tutorial and it I was able to bring the build size from 600Mb to 85Mb.

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

62 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

Related Questions

Texture count in Profiler increasing everytime animation is played 0 Answers

Please advice: what's the best way of saving sprites for random sprites prefabs? 0 Answers

Performance question: Is it better to Instantiate particle systems OR use same particle system? 1 Answer

Startup time of WebGL build 0 Answers

Animation : how to Interrupt an animation sometimes ? 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