Search Unity

Feedback Feature Request: "Mark All Properties as Overrides" component context menu tool.

Discussion in 'Prefabs' started by NotaNaN, Sep 13, 2021.

  1. NotaNaN

    NotaNaN

    Joined:
    Dec 14, 2018
    Posts:
    325
    While I am authoring new prefab variants there are many times when I would like to mark every property on a component as an 'override'.

    Currently, one could just manually edit all the properties by hand and then change them back to their desired value afterwards. Issue is — doing that is painstaking, particularly when you have lots of variants of prefabs and properties per component. :(

    Ideally, it would be great if in each component context menu a "Mark All Properties as Overrides" option existed. That would save me a lot of time and hassle. :)


    Furthermore, an easy-to-use API for marking a
    SerializedProperty
    as an override would also be nice. Right now having to programmatically adjust every field, apply the changes, and then revert all the fields to their previous value — and then apply the changes again — is really complicated to do and feels ridiculously hacky. ;)