Search Unity

Feature Request We should be able to remove unused overrides on many Prefab Variant assets at once

Discussion in 'Prefabs' started by FredTuna, Dec 9, 2022.

  1. FredTuna

    FredTuna

    Joined:
    Dec 28, 2016
    Posts:
    16
    Unity added the ability to remove unused overrides on prefab instances including prefab variants in 2022.2. Unfortunately, for prefab variants, we currently have to open each prefab variant individually to remove unused overrides. I wish we could remove unused overrides on prefab variant assets by just selecting them in the project instead of having to open them. That way I could select many of them and remove unused overrides in one click.

    Even from script, PrefabUtility doesn't expose any method for manipulating unused overrides as they are all internal. Adding a way to do this from script would be fine too as it would be easy to create a tool to do it on many prefab variants at once.