public static void ShowWindow() { _configurationFile = Path.Combine(Paths.SturfeeResourcesAbsolute, Paths.ConfigFile); SturfeeConfigurationWindow window = EditorWindow.GetWindow <SturfeeConfigurationWindow>(); Texture icon = AssetDatabase.LoadAssetAtPath <Texture>("Assets/Sturfee/Editor/Images/sturfee_official_icon-black.png"); GUIContent customTitleContent = new GUIContent("Sturfee", icon); window.titleContent = customTitleContent; window.Show(); _currentTab = OpenToSection; //GUI.UnfocusWindow(); }
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(); }