Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

A Beginner's Question About Sprite Importing / Memory Footprint

Discussion in '2D' started by Murkle, Dec 3, 2020.

  1. Murkle

    Murkle

    Joined:
    Oct 18, 2020
    Posts:
    5
    Hey there. I've got png image of size 600 x 1000, and in the import settings, I've set it to 1000 pixels per unit from the original 100, in order to make the sprites smaller and supposedly save memory space. I'm assuming that it should be fine, as I'm changing pixels per unit within import settings, rather than scaling down the sprite afterwards with transform, but just to make sure before I go ahead with this method for other images, will the build/game still have that large 600 x 1000 taking up the same amount of memory (file size of the game itself), or will it save on space as intended?

    Sorry if this is a bit of a silly question, but I just wanna be certain about my 'memory footprint'.
    upload_2020-12-3_16-30-40.png
    upload_2020-12-3_22-59-57.png

    Also, any general advice/info on ideal sprite sizes for this style (not pixel art) in unity would be much appreciated.
     
    Last edited: Dec 3, 2020
  2. raarc

    raarc

    Joined:
    Jun 15, 2020
    Posts:
    535
    nothing that you mentioned will change the memory taken by that image

    pixels per unit wont change it

    transform scale wont change it

    the only way to make it take less memory is using compression but that will decrease the quality of your image( you may find the decreased quality acceptable or not)

    to reduce memory in the correct way you should resize the image in photoshop to a smaller resolution like this
    upload_2020-12-3_22-59-57.png
     
    Murkle likes this.
  3. Murkle

    Murkle

    Joined:
    Oct 18, 2020
    Posts:
    5
    ah okay, thanks for explaining. In all likelihood, I'm going to keep the same sized resolutions, so that the camera can zoom in at certain points without the sprites starting to look pixelated.
     
    Last edited: Dec 3, 2020