Optimising Assets - Overview
Once the build contains only the required assets, developers can further optimise the size by tweaking export parameters of specific assets and folders. Most of such optimisations are "free": changing an image format from PNG to JPEG might yield as much as 80% of size reduction with little to no visual differences and little to no startup time cost. Similarly, switching the sound file to Mono and reducing the bit rate might be unnoticeable to most users and can yield significant savings in terms of the wire size.
We suggest starting your optimisation with the assets that take most of the space in compressed build.
We are also releasing a series of articles on Size Optimization on Medium, the first of which you can find by clicking here.
Optimising various asset types
Please navigate to sections listed below to see how Unity Playworks Plugin can help reducing the build size in a quick and non-destructive manner.
Checking Half precision floating-point. Animations are stored as floats, reducing the size of the animation data taken by 50%.
Control which characters get rasterized into an atlas by entering in your own custom alphabet contents, and removing characters that aren't being used in your playable.
Checking Half precision floating-point. Meshes are stored as floats, reducing the size of the mesh data taken by 50%.
Baking particle systems and converting to animations of sprites, improves performance vastly with room to optimise the images.
Unity can include an unnecessary big amount of shader variants as Unity cannot predict whether certain variants will be used or not. Check out our docs on Shaders for more details.
Setting the audio assets bit rate will help to reduce its size. Bitrate 0 k means max size, changing this to specific size will help reduce its size, it may also lower the audio quality.
Reduce max size of a specific or all textures to reduce their size. This section allows for setting texture sizes for folders or files that can have parameters applied to exported textures by default.