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. Dismiss Notice

LocalizeSpriteEvent Inspector bug, missing Asset References

Discussion in 'Localization Tools' started by cathode26, Nov 23, 2021.

  1. cathode26

    cathode26

    Joined:
    Jul 21, 2011
    Posts:
    27
    When creating Localize Sprite Events in the editor. The "Localized Asset Reference" disappears from the drop down as soon as a single sprite is assigned. You will notice that I have assigned a sprite to both SpinSpriteUp and MaxBetSpriteUp in the example below. If you look in the "Localized Asset Reference" list those sprites references are not assignable anymore. If I remove the sprites that I have assigned, they are back in the list.

    Assigned Sprites
    upload_2021-11-23_16-42-37.png

    Unassigned Sprites

    upload_2021-11-23_16-47-26.png
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    Hey, this is more of a UX issue that we do know about. When you drag the Sprite we will take the Main asset, which for a Sprite happens to be a Texture, the actual sprite part is a sub-asset. You should expand the Sprite in the project view and drag the sub-asset into the slot instead, you will see that the type is then a Sprite and any future assets you drag will correctly take the sub-asset. We do have plans to improve this in the future.
     

    Attached Files:

  3. cathode26

    cathode26

    Joined:
    Jul 21, 2011
    Posts:
    27
    Dragging the subasset/sprite shows a denial symbol, circle with a slash through it.
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    You will need to remove the textures that were added so that it says Object as the type again.