Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Event when prefab instance has a field reverted?

Discussion in 'Prefabs' started by spsmith5, May 6, 2020.

  1. spsmith5

    spsmith5

    Joined:
    Oct 25, 2016
    Posts:
    4
    Hi, I'm trying to write a custom inspector that responds correctly to a field on a prefab instance being reverted. Specifically, when the user right clicks on a bold overridden field in the inspector and reverts it. The EditorGUI class's change check methods don't seem to catch this, and I'm not sure what else to try.

    Is there an event similar to Undo.undoRedoPerformed, but for prefabs? Or something else to use? Thanks.
     
unityunity