Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug (IN-12231) Replacing 'Missing' References in Prefab View does not mark as dirty, won't enable save

Discussion in '2022.2 Beta' started by Acissathar, Aug 3, 2022.

  1. Acissathar

    Acissathar

    Joined:
    Jun 24, 2011
    Posts:
    677
    Replacing a 'missing' reference in prefab editor view will not flag the prefab as dirty, and as such, will not save unless you toggle other fields which do flag it as dirty.

    Quick test using 2 sprites:

    1. Create an Image, assign a sprite and make it a prefab.
    2. Delete sprite used above.
    3. Open Prefab Image in Prefab Editor View.
    4. Replace the 'missing' sprite reference with second sprite.
    5. Note that Save does not become enabled.
    6. Leave Prefab View and note the change did not happen.
    7. Repeat 2-3 but this time flip some random field and verify save becomes enabled.
    8. Save and back out, and note this time the missing reference update correctly saved.

    Doesn't have to be sprites/images, seems to be any "missing" reference that replicates the issue.