Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Localize Sprite Event does not show the keys in the asset table second time

Discussion in 'Localization Tools' started by ashishswain_paperboat, Mar 23, 2021.

  1. ashishswain_paperboat

    ashishswain_paperboat

    Joined:
    May 14, 2018
    Posts:
    3
    Hi,
    I have 3 entries in my Asset Table, 2 Sprite and 1 audio clip. Now I am trying localise the Image in the canvas. I have used 'LocalizeSpriteEvent' Component. Now once I add it I select the table from and the key from the LocalizeAsset property drawer. Once I add that particular key its not available anymore for future use. I am using version 0.10.0

     
    Last edited: Mar 23, 2021
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,222
    Hi,
    Are they being treated as Sprite assets or Textures?
    When you grab a Sprite asset and drop it into the table it will treat it as a Texture2D unless you grab the actual sprite part. This is a quirk of Unity, a Sprite is actually a sub asset, the root is the Texture. So when you drop the asset into an Object field it will take the root and treat it as a Texture and not a Sprite. This is by design.
    You can drag the Sprite asset directly like so

    example.gif
     
  3. ashishswain_paperboat

    ashishswain_paperboat

    Joined:
    May 14, 2018
    Posts:
    3
    Thanks it helped.
     
    karl_jones likes this.
  4. siddharth3322

    siddharth3322

    Joined:
    Nov 29, 2013
    Posts:
    1,049
    It's really surprising but worked and one problem solved after 24 hours :)
     
    karl_jones likes this.
  5. pikalee025

    pikalee025

    Joined:
    Oct 20, 2022
    Posts:
    1
    Thanks. It works.
     
    karl_jones likes this.