public static void OpenInfo() { SentinelsInfo window = (SentinelsInfo)GetWindow(typeof(SentinelsInfo)); window.minSize = new Vector2(350, 500); window.titleContent = new GUIContent("Importer Info"); window.Show(); }
void DrawBody() { GUILayout.BeginArea(bodySection); GUILayout.BeginArea(new Rect(Screen.width - 26, 2, 24, 24)); if (GUILayout.Button(infocon, GUILayout.Width(24), GUILayout.Height(24))) { SentinelsInfo.OpenInfo(); } GUILayout.EndArea(); GUILayout.BeginArea(new Rect((Screen.width / 2) - 70, 0, 140, 140)); if (toolLogo == null) { toolLogo = AssetDatabase.LoadAssetAtPath("Assets/VRCSDK/Sentinels/Importer/resources/icons/logo.png", typeof(Texture2D)) as Texture2D; } GUILayout.Label(toolLogo); GUILayout.EndArea(); GUILayout.BeginArea(new Rect(10, 140, Screen.width - 20, 80)); GUILayout.Label("Choose Asset:"); index = EditorGUILayout.Popup(index, options); SelectedAsset(); ImportButton(); GUILayout.EndArea(); GUILayout.EndArea(); }