Search Unity

Reducing Sprite Atlas subtextures count

Discussion in '2D' started by Raali_Oloth, Jul 4, 2018.

  1. Raali_Oloth

    Raali_Oloth

    Joined:
    Jul 29, 2013
    Posts:
    22
    Hello!
    I know that there is a way to make sprite atlas smaller by creating a downscaled variant.
    But if sprite atlas has many sub textures, say 2, how can i create variant not by resizing this 2 sub textures but by resizing sprites inside and creating 1 sub texture with same size (for preventing possible loading spikes in the middle of animation and decreasing draw calls)?

    It will be great if we could make sprite atlas variants by resizing quads inside texture, not by resizing textures, that will reduce subtextures count
     
    Last edited: Jul 5, 2018
  2. Raali_Oloth

    Raali_Oloth

    Joined:
    Jul 29, 2013
    Posts:
    22
    Also, if there is a way to "bake" spriteatlases so i can delete all N * 500 sprites to prevent long editor loadings every day?)
     
  3. Raali_Oloth

    Raali_Oloth

    Joined:
    Jul 29, 2013
    Posts:
    22
    Figured it out, to reduce sprite atlas texture pages i can just generate bigger atlas then set max texture size in platform specific options if needed)
     
  4. Raali_Oloth

    Raali_Oloth

    Joined:
    Jul 29, 2013
    Posts:
    22
    To "bake" sprites i just can use external texture packer