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 Bwhang · Mar 27, 2016 at 02:18 PM · build

How do I make sure all C# system system files are gone when I build.

I'm a noob. I followed Brackey's Make A Game tutorials which are in Javascript.

I needed to make a movie play and pause the game. I found Youtube videos on these in C#. Thus I had a bunch of Javascript files and 2 C# files.

When I built the game, it was huge (half a GB). To shrink the size, I thought to ditch the C# files and the system files that support them. I realize C# is better but since I'm a noob, I'd rather rewrite 2 scripts than a ton.

I now don't have any C# files. When I build, I'm still at about a half a GB.

How do I ditch all the C# system files that supported my old scripts that aren't there anymore?

Comment
Add comment · Show 1
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 meat5000 ♦ · Mar 27, 2016 at 02:18 PM 1
Share

Have you actually looked at the size of a script? Its just text so its pretty damn small.

Do you realise how much code you need to fill half a GB?? A ton^2 and some.

On a Windows machine run a program like WinDirStat, which will analyse your folders and show you what takes up the most space. Simply let it run then navigate to your Project folder to get a better idea of where all the space is going.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Bwhang · Mar 28, 2016 at 05:55 AM

I know that script sizes are small. That's why I was talking about the system files that support them. Since I'm a noob, maybe I'm calling those files that support the languages the wrong name. If they aren't "system files" than I'm not sure what to call them. I was just wondering if Unity has a lot of files to support Javascript and C#. And in my situation, since I once had both script types, I was worried that I still had the "system files" that supported both and maybe that was one of the reason why my game is so large. I wasn't sure if by getting rid of the C# scripts, if Unity automatically doesn't include any more C# system files.

In terms of what's currently taking up a lot of space: it's files like the following: 03/27/2016 04:17 AM 101,362,360 sharedassets10.assets.resS 03/27/2016 04:17 AM 100,663,296 sharedassets6.assets.resS 03/27/2016 04:17 AM 58,159,708 sharedassets0.assets 03/27/2016 04:17 AM 25,307,184 sharedassets13.assets 03/27/2016 04:17 AM 25,267,032 sharedassets3.assets

Do these only include "shared assets" or is there any Unity overhead in there as well?

Thanks for looking into this. Sorry that I'm not using the correct terminology.

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 Bwhang · Sep 21, 2016 at 04:55 AM 0
Share

I found out why my game was so large. I went to the Editor Log in the Console window after a build.

I had too many Skyboxes (1 per level). I ditched most of them and I cleared out 280$$anonymous$$B.

That Editor Log is great.

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

55 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

Related Questions

Build freezes IOS on startup. Forced to hit powerbutton 0 Answers

Android Build Errors 0 Answers

Fatal Error : Failed to load mono 0 Answers

Failed To Compile: Android SDK Location 0 Answers

png of 256KB turns into 6.4MB on build! 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