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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Unable to localize sprites

Discussion in 'Localization Tools' started by d3cim0, Jun 20, 2022.

  1. d3cim0

    d3cim0

    Joined:
    Jun 6, 2018
    Posts:
    8
    Hi there!

    I'm trying to change a sprite depending on the language selected, as I did previously with a text table. So I've created a new asset table and stored a key with new sprites, as you can see in the following image:

    upload_2022-6-20_15-29-4.png

    However, at the moment I want to localize the asset reference, there is no option to choose the key previously stored, just the name of the table is shown:

    upload_2022-6-20_15-30-19.png

    So far, the issue has been solved by changing from image to raw image, since the option to localize a texture event works perfectly, but I'd like to know whether I'm missing something when I want to create the same effect by using a sprite instead of a texture.

    Thanks in advance!
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,876
    Sprite assets are a texture with a sprite sub asset. So if you just drag the asset it will treat it as a texture. You need to expand the asset and drag the sub asset in so it recognises it as a sprite. We have some plans to improve this ux in the future.
     
    d3cim0 likes this.
  3. d3cim0

    d3cim0

    Joined:
    Jun 6, 2018
    Posts:
    8
    By dragging the asset directly into the object, I realized that a 2D texture is attached to the key; however, following your directions, it has now been linked as a sprite. Thanks again!!
     
    karl_jones likes this.