public override void OnInspectorGUI() { // we have to slam the control so it fits in it's desired size due to a bug in unity which blows // away the initial transform data. StyledComboBox comboBox = target as StyledComboBox; EditorGUI.BeginChangeCheck(); DrawDefaultInspector(); if (EditorGUI.EndChangeCheck()) { comboBox.InitControl(); } }