public override void OnInspectorGUI() { DrawDefaultInspector(); serializedObject.Update(); SturfeeXRSession xrSession = target as SturfeeXRSession; _provType.intValue = EditorGUILayout.Popup("Provider Set", _provType.intValue, ProviderSet, GUILayout.Height(20)); _provString.stringValue = ProviderSet[_provType.intValue]; if (_provString.stringValue == "Add New") { SturfeeConfigurationWindow.OpenToSection = 1; SturfeeConfigurationWindow.ShowWindow(); _provType.intValue = 0; } serializedObject.ApplyModifiedProperties(); }