static void PlayFabServices() { var editorAsm = typeof(Editor).Assembly; var inspWndType = editorAsm.GetType("UnityEditor.SceneHierarchyWindow"); if (inspWndType == null) { inspWndType = editorAsm.GetType("UnityEditor.InspectorWindow"); } window = GetWindow <PlayFabEditor>(inspWndType); window.Show(); window.titleContent = new GUIContent("PlayFab EdEx"); PlayFabEditorPrefsSO.Instance.PanelIsShown = true; }