Search Unity

Feature Request Warn user that you are about to delete a prefab that has variants

Discussion in 'Prefabs' started by ScottySR, Mar 21, 2023.

  1. ScottySR

    ScottySR

    Joined:
    Sep 29, 2018
    Posts:
    48
    Currently when you delete a prefab that has variants, you don't get a warning. After deleting the prefab, all of the variants made from that prefab are broken. It would be nice to at the very least have a warning that says that the prefab has variants, which will break if you delete it. Additional options would be to unpack the variants or unpack one of them and make the others variant of that (not sure how complex process that would be).

    The project browser could also have a icon in the corner of the preview icon that it is a variant or even that a prefab has variants.
     
    Kurt-Dekker likes this.
  2. geer-v

    geer-v

    Unity Technologies

    Joined:
    Jun 8, 2022
    Posts:
    6
    Hi ScottySR, thank you for the suggestion. We will discuss this internally.
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,692
    Let me take @ScottySR's suggestion to a higher level:

    When you press DELETE from within the Unity editor, throw up a warning if that asset is used ANYWHERE.

    A list of places that it is used would be handy too right at that point.

    It would help get us users out of this purgatory of 57,000 different types of "Find your missing assets script!"
     
    chemicalcrux likes this.