internal static void RevertPrefabObjectOverride(object userData) { Object obj = (Object)userData; PrefabUtility.RevertObjectOverride(obj, InteractionMode.UserAction); EditorUtility.ForceReloadInspectors(); }