Convert to mobile

Hi,

I need a few pointers on how to go about converting some scenes for mobile devices. Google play only lets you have about 50mb.

I was going to buy on of the Abandoned Hospital assets from the asset store, however they are all fairly large.

Any suggestions on how I can go about turning one of these into a more mobile friendly asset?

Thanks.

You can have apps much larger than 50 MB on iOS or Android. On Android, the base APK can only be 50 MB but you can have add-on OBB files that carry other data. Unity will mostly take care of this for you when you build for android. The only thing you have to worry about is if you want your game to work for OTA downloads, you may need to keep it < 50 MB (in the US). Lastly, those asset store packages usually include uncompressed assets, so they are much bigger for you to download than they will be once compressed in the final app build.

1 Like

Great! Thanks for that info.

As MakeCodeNow explained, you can make larger applications for iOS and Android, however you may not need to.

Often, texture and audio data consumes the vast majority of space when your app is compiled. Unity includes a number of great texture import options for mobile devices to help with this. When you change your build target to iOS or Android, you should be able to select your textures in your assets folder, and change their “compression” type. According to the documentation, you can get a 256x256 texture down to around 16kb!

Often, files like PSDs, and PNGs can also contain a lot of layer and shape data that isn’t necessary when you’ve built your game. Unity will automatically strip this data out when textures are compressed, and I’ve sometimes found that a 20mb PSD will compress to around 100kb.

The same is true of audio. If you’re willing to sacrifice a little quality, you can get a lot of assets down to much more manageable sizes!