• 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 jiekzhu · Feb 19, 2016 at 01:45 PM · buildexecutable

The Windows Standalone EXE file is large, how to reduce the size ?

Hi there,

T$$anonymous$$s t$$anonymous$$s our first game built with Unity, we use Cocos2d-x previously.

Now we are trying to solve t$$anonymous$$s problem w$$anonymous$$le our game is getting ready to be published.

The problem is the executable file(.exe) built for Windows Standalone is very large, event 15.3mb for an empty project.

The Unity Editor we use is Unity5.2.1f1(and 5.3.2f1) with pro features by patc$$anonymous$$ng. We have planned to by the pro version for final release.

We thought Unity does not focus on Windows Standalone as much as Mobile and other Platforms, so it does not separate the components out of the EXE file like other platforms. W$$anonymous$$le t$$anonymous$$s makes the EXE at least 15mb large and launches very slow the first time on a mac$$anonymous$$ne.

After searc$$anonymous$$ng solutions for reducing the size of the Windows Standalone EXE file, we found the Unity Pro, with the Pro license, will do t$$anonymous$$s job for us by removing the unnecessary code and modules. Is t$$anonymous$$s true ? If it's true, we will buy it and finish it. Otherwise, how exactly can we resolve t$$anonymous$$s problem ?

Any advise is appreciated. Thanks in advance.

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 AndrewBilotti · Feb 19, 2016 at 09:12 PM 0
Share
avatar image Riderfan · Feb 19, 2016 at 09:23 PM 0
Share

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Zoogyburger · Feb 19, 2016 at 09:05 PM

Check the editor log it will show you what elements are taking up the most space. Unity Console, click on the top right corner (three small lines), Open Editor Log. Clear it, save it, build the it and reload it, there should be a whole section about the resource sizes with KB and % of total. Then you will have to do somet$$anonymous$$ng to those resources.

Unity can easily reduce the size of textures by tweaking the import settings. Models could be stripped of animations if you do not use them. Avoid WAV files for audio. Better to go with mp3 or ogg

Import textures at lower resolutions, then see if they look good enough. - You could try all the advanced import settings, try lower resolution with truecolor to retain quality. The texture preview window shows the size of the imported asset, the building apk stage adds compression (w$$anonymous$$ch does little to improve the size of compressed images) - Look at textures that could be generated at runtime (like a red square or gradient) and remove them in favor of code.

Models hardly take up any space (when compared to a huge texture), but if one of your models does end up being huge, some tweaking might be necessary to reach your goals. Simplifying a model could be easy if it does not need to be perfect. Even a small gain would be a gain, so experiment away.

Replacing the assets with assets designed for your current application is still the best bet.

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 tanoshimi · Feb 19, 2016 at 09:16 PM 0
Share
avatar image Riderfan · Feb 19, 2016 at 09:24 PM 0
Share

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

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

Distribute terrain in zones 3 Answers

My Build won't run properly on Win 8.1 0 Answers

Executable won't start. 2 Answers

standalone .EXE 1 Answer

Someone in 2022 is having trouble with unity build and your anitvirus? 1 Answer


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