Developer Builds Unity APK Parser to Decode Three Conflicting Build Size Metrics
A developer working on a Unity build-size experiment discovered that Unity's build pipeline reports three different size figures for the same Android APK: the actual compressed file size (17.10 MiB), the BuildReport summary total (143.54 MiB), and the sum of packed asset entries (5.60 MiB). Each metric measures a different aspect of the build output, which initially caused confusion about which number reflects what users actually download. To resolve this, the developer wrote a custom BuildReport parser using Unity's IPostprocessBuildWithReport interface, generating a repeatable text report after every build. The tool ranks packed assets by size, groups duplicate source entries, and records all three metrics side by side to prevent mix-ups. The full source code has been published on GitHub as part of an ongoing Build Analyzer series.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in