void OnGUI() { EditorGUILayout.Space(); if (editorData.destinationFolder != "") { EditorGUILayout.BeginVertical("box"); EditorGUILayout.BeginHorizontal(); if (GUILayout.Button("SAMPLE PREFAB", GUILayout.Height(30))) { if (selected.Count > 0) { samplePrefab(); } } openConfig = GUILayout.Toggle(openConfig, editorData.configButton, "Button", GUILayout.Width(30), GUILayout.Height(30)); if (openConfig == true) { YuME_pSConfig editorConfig = EditorWindow.GetWindow <YuME_pSConfig>(true, "Prefab Sampler Config"); editorConfig.titleContent.text = "Prefab Sampler Config"; } openConfig = false; EditorGUILayout.EndHorizontal(); EditorGUILayout.EndVertical(); EditorGUILayout.BeginVertical("box"); EditorGUILayout.LabelField("Prefab Folder:", EditorStyles.boldLabel); EditorGUILayout.LabelField(editorData.destinationFolder); EditorGUILayout.EndVertical(); } else { EditorGUILayout.HelpBox("Set a destination directory to create prefabs", MessageType.Warning); } }
static void Initialize() { YuME_pSConfig editorConfig = EditorWindow.GetWindow <YuME_pSConfig>(true, "Prefab Sampler Config"); editorConfig.titleContent.text = "Prefab Sampler Config"; }