private void ResetButton(int index) { Undo.RecordObject(m_Target, "Undo Inspector"); m_Target.ResetButton(index); EditorUtility.SetDirty(target); }