Search Unity

Question What are the best practice for using Sprite Atlas with localization?

Discussion in 'Localization Tools' started by nick0937, Nov 29, 2022.

  1. nick0937

    nick0937

    Joined:
    May 14, 2014
    Posts:
    10
    I have some generic image resources and two different language image resources in my project. By using Sprite Atlas to reduce draw calls. From my understanding, there are two possibilities: :
    • Join all images in the same Sprite Atlas
    • Create a Sprite Atlas for each set of image resources
    Does the first way cause unused language image resources to be loaded into memory?
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,300
    Yes it would need to load the whole sprite sheet so if all languages are in it then it would be loading unused images.
     
  3. nick0937

    nick0937

    Joined:
    May 14, 2014
    Posts:
    10
    Thank you for your reply! !
    So is the second way better?
    Are there other possibilities?
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,300
    Yes the 2nd way.