Search Unity

Question Cleaning Prefab Variants that keeps reference of unused assets.

Discussion in 'Prefabs' started by Rafarel, Dec 3, 2020.

  1. Rafarel

    Rafarel

    Joined:
    Jul 21, 2017
    Posts:
    199
    Hello there!

    I'm using the prefab variant workflow a lot in my project and I also use a very good plugin to track down assets usage. The plugin is called Find Reference 2

    I noticed that prefab variant has reference of asset that the variant do not use anymore in the *.prefab files and it is pretty annoying when it comes to cleaning your project from unused assets. Because prefab variants keeps reference of unused assets in the yaml object, precisely in the m_Modification yaml object.

    Is there a way to clean my variant with Unity because it is pretty boring to edit manually these yaml files.

    Thanks a lot!
     
  2. SteenLund

    SteenLund

    Unity Technologies

    Joined:
    Jan 20, 2011
    Posts:
    639
    Rafarel likes this.
  3. Rafarel

    Rafarel

    Joined:
    Jul 21, 2017
    Posts:
    199
    Thanks a lot @SteenLund, I cleaned manually all my variants before I get your answer but I'll definitely test these tools.
    Hope Unity will include these kind of tools out of the box in the future :)

    Have a great day!