20mb over for simple publishing to Google Play

Hi
I am about 20mb over the 150mb limit for Google Play. Before I try to understand how to publish larger apps I wanted to check that deleting files in my assets folder will make no difference to the build size.

I have assumed that only the scenes in the “Scenes in Build” section will determine the final apk size (and their associated assets). So deleting old assets and scripts in the assets hierarchy will make no difference.

Is my assumption correct?
thanks

can also check editor.log it shows file sizes in the build,

That’s a mostly correct assumption. Unity’s very good at knowing which assets in your project are actually used by your build, and only includes those in the build. The exception to this is whatever content is placed in a folder named “Resources”. Those objects, and all of their dependencies, are always included in a build, whether you’re actually using them or not. So it’s worth checking whether you have anything in Resources that you don’t need, and finding another place for it.

Another minor thing to be aware of is that textures will tend to be much larger in a build than they are in your project, due to the different compression methods that are used. So, it’s possible an entire 20 MB could be the result of a single material. As @mgear said, looking at the log file after building will give you the specific file sizes of all the assets included in the build. Definitely worth looking at.

also check StreamingAssets/ folder (if you have it in the project), its not included in that build report.

thanks all - very helpful
Interesting what you say about textures. I have had a look at the log file but struggling to interpret it. There doesn’t appear to be a summary of how the file size is made up. Is there a particular section I should be looking at?

After a successful build, there should be a section in the Editor.log that shows the file size breakdown in raw file sizes, and in percentage of the size of the build. The screenshot on this page shows that section of the log file you’re looking for:

great - thank you