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

Bug Renaming atlased sprite does not update references to it

Discussion in 'Addressables' started by gooby429, Jun 10, 2023.

  1. gooby429

    gooby429

    Joined:
    Aug 13, 2019
    Posts:
    110
    Unity version: 2021.3.24
    Addressables version: 1.21.2

    Lets say i have an Iron_Ore sprite in an Ore Sprite Atlas, and i reference it as an AssetReferenceAtlasedSprite on an Iron Ore item scriptable object. If i rename the sprite to "Ore_Iron", the SO field still shows the old name and appears like its assigned, but it isnt. You wont know this until you check on it yourself or run the game and get a bunch of loading errors. So, I have to go to it and reassign it myself in order for it to work again.
     
  2. timtunity3d

    timtunity3d

    Unity Technologies

    Joined:
    Oct 1, 2015
    Posts:
    124
    I believe we fixed this in 1.21.10. We keep track of the underlying GUID instead of tracking by name. Can you try updating and see if it fixes the problem?
     
  3. gooby429

    gooby429

    Joined:
    Aug 13, 2019
    Posts:
    110
    doesnt 1.21.2 come after 1.21.1? i can try downgrading i suppose
     
  4. timtunity3d

    timtunity3d

    Unity Technologies

    Joined:
    Oct 1, 2015
    Posts:
    124
    It was fixed in patch release 10 in the 1.21 series. We're at 1.21.12 now, so I'd suggest trying that version to see if it helps.
     
  5. gooby429

    gooby429

    Joined:
    Aug 13, 2019
    Posts:
    110
    sorry brainfart :p i thought 1.21.2 == 1.21.20, and didnt see any upgrade available in the package manager. ill go find it and try upgrading
     
  6. gooby429

    gooby429

    Joined:
    Aug 13, 2019
    Posts:
    110


    its still broken. the subobject name is not updated in the editor field, and it throws these errors when i try to select the subobject. Then I hit pack preview on the atlas, and it no longer errors but the name is still not updated. When i try to select the subobject now, it doesnt error but it also highlights "none" indicating nothing is assigned.