AAB size reduction for Instant Apps (hard to keep under 15mb with newer Unity Versions)

Hi,

I’m currently working on an Instant Apps with the Google Play Instant Plugin for Unity(Plugin).

I would appreciate some help in regards to reducing the size further!

I have tried building empty scenes for unity Version 2022.3.49f1, 2021.3.44f1 and 6000.0.21f1.
2021 → 13.951 kb
2022 → a bit over 15 mb (Working on this version currently)
6000 → 22.174 kb
The newer the unity version the more size creep on build size occurs.

Since Google Plays limit for Instant Apps is an aab upload of 15mb or less (OBB not supported), changes have to be made to get this buildsize.

Project Setup:
Version: Unity 2022.3.49f1
Render: URP

Steps that i have taken to that effect:

  • Single Graphics API - GLSE3
  • API Compatability Level - .NET Standard 2.0
  • Scripting Backend - IL2CPP
  • IL2CPP Code Generation - Faster (smaller) builds
  • Managed Code Stripping - High
  • Remove unnecessary Packages
  • Limit size of Textures
  • Crunch Compression of Textures

The only “Content” in my build is a simple loading scene to load an Asset Bundle containing a scene with the actual content.
image

Building a AppBundle (Google Play) via Unity Build Settings creates an aab with size of 16.481 kb
The Plugin reduces the size further but i still stay above th 15mb.
Building via the Google Play Instant Plugin with it set to Instant creates an aab with size of 15.680 kb.

Buildreport after building with plugin:

The buildreport shows that the unity splash screen texture 2D is included even though it is not used (turned off in Playersettings).

Is there a way to remove the Splashscreen texture or compress textures in packages?

Is there a way to get a more detailed report in regards to the user generated assets, since its unclear to me how the 3 textures i added could possibly come to 6.2mb (the biggest is shown in report as 128.5 kb uncompressed)?

And more Tips and Tricks to reduce the buildsize?

Thanks for reading!
Cheers