If i import a large image of a bullet and set it as a sprite and set the Pixels to Units to something large like 4000 in order to make the bullet MUCH MUCH smaller.
If i only use that small version of the bulet as a sprite in my game, will the FINAL BUILD still use the original LARGE image for storage in memory and actively scale it in game?
Or do i have to import the image in the size that i want it to be in order to not waste any memory?
I havent seen any clear answers to this question anywhere.
Hi luniac, good question.
See the thing is if you import large image and scale down, there are two things,
- it is large in memory
- scaling down, compromises the quality sometimes.
So it is highly recommended to, Import the image in the size that you want it to be in order to not waste any memory and preserve quality.
Now, to answer your question,
If you change the texture settings, Max size and Format, then your build will use the texture of the size and memory you specified in the texture settings. That will affect the Build size.
I tested importing a image of size 4096, set it to Max size - 4096, and Format - True color in the Texture Settings, and having nothing else than that image in a scene, after building it, the size of the build was around 31 MB.
Then I changes the Max size - 1024, and Format - Compressed, after building it, the size of the build was only 8 MB.
Hope that answers your question.