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.

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:
    8
    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:
    7,017
    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:
    8
    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:
    7,017
    Yes the 2nd way.