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
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,

This this our first game built with Unity, we use Cocos2d-x previously.

Now we are trying to solve this problem while 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 patching. 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. While this makes the EXE at least 15mb large and launches very slow the first time on a machine.

After searching solutions for reducing the size of the Windows Standalone EXE file, we found the Unity Pro, with the Pro license, will do this job for us by removing the unnecessary code and modules. Is this true ? If it's true, we will buy it and finish it. Otherwise, how exactly can we resolve this 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

Go back to using cocos2d for 2d because Unity has a GIANT file size for everything xD

avatar image Riderfan · Feb 19, 2016 at 09:23 PM 0
Share

The executable for our project is co$$anonymous$$g in just shy of 20$$anonymous$$B. So large executable file size seems to be a standard thing.

The reality is that this isn't really a big deal. If you were targeting a Commodor 64, then yes, 15$$anonymous$$B would be a problem. But it's really not a lot to worry about on today's PC's.

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 something 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 (which 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

This is all good advice, but it will not affect the size of the exe file- only the size of the resources in the /data folder. The size of the. exe file is pretty unchangeable (although I really can't see why 15mb is a problem)

avatar image Riderfan · Feb 19, 2016 at 09:24 PM 0
Share

Textures and models are not in the executable file.

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

Distribute terrain in zones 3 Answers

GameObject problem 1 Answer

Unity seems to be silently suppressing exception dialogs, and showing no messages. Why is that? 1 Answer

Hide windows build folder 1 Answer

Unity built my project, but won't run it 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