Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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,570
    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,570
    Yes the 2nd way.