Hi
I need to cut some MBs from my game and from the logs it looks like textures is the big one (thanks @dgoyette)
So I am hoping for an easy way to see what textures i am using and which can therefore be removed.(other than in the log file… looking for a way to view in Editor)
Unless the textures are in the StreamingAssetfolder or the ressource folder they will only be incluided in the game if they are reference by a scene / a asset that is referenced in the scene.
So all unused assets are not included in your game.
The build report (in the editor log after you build the game) shows a list of the assets used and there uncompressed size.
The default settings are General “save” but if you like to cut some MB you might like to see if texture compression (that you can set in the import settings of the texture) is a option for you.
I think you’re missing an important detail. Unity is already smart enough to include textures in the build as long as you’re actually using them on an asset included in the build. To make sure that’s clear, let’s say I add a hundred high-res images to my Unity project, and then I do a build. The build won’t contain any of those images. It’s not until some model in one of my levels uses one of those textures that the texture will be included in the build. In that sense, there’s no need to “remove” any textures from your game, since only the ones you’re actually using get included in the build anyway.
The exception to this is to look in your Resources folder to see if any assets exist there that you know you’re never using. If so, move them out of Resources, otherwise they’ll always be included in the build.
The primary way to reduce build size, short of actually removing content from your game, is to lower the image effective resolution. With a texture selected, look at the bottom of the inspector. You’ll see something like this:
The “Max Size” controls the effective resolution of that image in your build (as well as in the editor). For me, a Max Size of 1024 usually produces textures of about 5.3 MB in size. If I know it’s not a super important texture, I’ll lower it to 512, which will cut the size to 1/4th of that, or about 1.3 MB in the build. The texture won’t look at good, but texture quality vs build size is always a trade off.
So, my recommendation is just to look at that build log, and see which files are largest. Then decide whether you can lower the image size. You might find it’s not worth the loss in quality, but you can decide that on a case by case basis.
really helpful answers - thank you
this gives me a whole new way to consider how to reduce the size of my game without removing any more content.
thanks