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 Palmylab · May 02, 2018 at 11:36 AM · editoril2cppfilesizefile sizebackup

Game project directory filesize x10 increase after IL2CPP compilation

I use to save the whole directory of my project for backup reasons.

Zipped it has always been around 7Mb filesize. Last week after compiling the APK using IL2CPP the APK build itself file slightly decreased, while the project folder zipped is now nearly 80 Mb. Investigating the reason I discover that a new IL2CPP folder (il2cpp_android_armeabi-v7a) is created under Library subfolder. That folder unzipped is 240 Mb and mainly contains IL2CPP cache files.

Now the problem is that even if I revert the editor settings by not using IL2CPP anymore still the project folder retains the IL2CPP cache.

2 questions:

  1. Is there a way to avoid Unity to save the IL2CPP cache folder?

  2. If I delete that folder will I still be able to import the project without any loss?

Any answer will be appreciated. Thank you

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

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by JoshPeterson · May 02, 2018 at 11:52 AM

Is there a way to avoid Unity to save the IL2CPP cache folder?

No, the IL2CPP build cache will be created for each build. There is no option to disable it.

If I delete that folder will I still be able to import the project without any loss?

Yes, the cache folder is not necessary to import or build a project.

Note that the IL2CPP cache folder is not part of the APK. It exists to support incremental building, so that subsequently builds will be faster than the initial build, when the source code does not change. I would not recommend deleting it.

Comment
Add comment · Show 6 · 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 Palmylab · May 02, 2018 at 12:18 PM 0
Share

Yes I will leave it in the "live" folder. But now I can safely remove it from backups. Thank you for the prompt reply Josh.

avatar image KarlKarl2000 · Oct 10, 2019 at 07:04 AM 0
Share

@JoshPeterson Sorry to revive an old thread. But I'm having the same situation, my il2cpp folder is now at 11GB. Is there any way to reduce the size? Is that 11GB all necessary or is it possible there's older data that's no longer needed?

Thanks

avatar image JoshPeterson KarlKarl2000 · Oct 10, 2019 at 11:35 AM 0
Share

That does seem pretty large. I would recommend deleting the folder. The next time you build it will be re-populated with the $$anonymous$$imum amount of object files necessary. Hopefully that is much less than 11 GB!

avatar image KarlKarl2000 JoshPeterson · Oct 10, 2019 at 08:34 PM 0
Share

Thanks for the advice :)

Just out of curiosity, what do you think about a Unity Editor tool that can "smartly" flush the cache folders?

$$anonymous$$y $$anonymous$$etadata folder is 9GB, PlayerDataCache folder is 7.5GB and Shader Cache folder is 1Gb.

Show more comments

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

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

Editor Filesize 1 Answer

Sprites increase android apk size 2 Answers

Create/Save a build or version in case of mistakes ? 1 Answer

Unaccounted contribution to iOS File Size in Editor Build Logs 1 Answer

Texture preview in editor not showing file size 2 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