This is found in the default tab and seems to be the replacement for auto compression from the older versions of Unity. This will set the maximum resolution allowed for this texture, e.g if your texture is 3000×3000 setting this to 2048 will set the texture resolution to 2048×2048, if the original texture size is smaller than the selection e.g 2000×2000 then setting this to 2048 will not affect the texture resolution, keeping it at native file resolution. – Note if you’re using an older version of Unity you need to set the Texture Type to Advanced before you are given the option to select specific compression formats rather than just automatic) Unity Texture Compression Options With your texture selected you’ll want to select your target platform and tick the override checkbox (In older versions of Unity you could just set the compression format from the default tab to affect all platforms, however this was changed in later versions of Unity 5. (If you don’t have the project window or inspector window visible you can add them from Window > Project and Window > Inspector and if selecting objects from the project window isn’t showing the import settings try pressing the lock icon top right of the inspector) Unity texture import settings can be adjusted by selecting the texture in the project window to show the texture import settings in the inspector window.įrom the texture import settings you can set texture compression, control mip-mapping and adjust few other useful texture settings. Viewing the Target Texture Import Settings This guide explains how you can compress the images (Textures) from this list. Below this line is a list of all assets included into the build ordered by their filesize.įrom here you can go through the assets and determine what you can do to compress or remove some of these items. In the editor log search for ‘ Used Assets and files from the Resources folder, sorted by uncompressed size:‘. After making a build open the editor log from the dropdown menu top right of the console (Open the console from Window > Console) (Alternatively on windows it can be found in %localappdata%/Unity/Editor/) You can find out exactly what’s causing your build filesizes to be so high with the Editor Log. Textures are generally the main cause of high build filesizes, especially when you have a lot of textures at higher resolutions! Texture compression in Unity allows you to reduce the filesizes of your textures and in most cases makes no visual difference!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |