private string SetBuildFolder()
        {
            var fullPath = EditorUtility.OpenFolderPanel("Build Folder", Application.dataPath.Replace("Assets", string.Empty), "bin");

            if (!string.IsNullOrEmpty(fullPath))
            {
                _buildFolder = fullPath;
                BuildScriptPrefs.SetBuildFolder(_buildFolder);
                base.Repaint();
            }

            return(fullPath);
        }
        private void RenderBuildFolder()
        {
            EditorGUILayout.LabelField(new GUIContent("Build Folder", "The folder to place builds in."), EditorStyles.centeredGreyMiniLabel);

            EditorGUILayout.BeginHorizontal();

            EditorGUI.BeginChangeCheck();
            _buildFolder = EditorGUILayout.TextField(new GUIContent("Build Folder:", "The folder to place builds in."), _buildFolder);

            if (EditorGUI.EndChangeCheck())
            {
                BuildScriptPrefs.SetBuildFolder(_buildFolder);
            }

            if (GUILayout.Button(new GUIContent("Browse", "Browse for folders in the project."), EditorStyles.miniButtonRight, GUILayout.Width(EditorGUIUtility.fieldWidth)))
            {
                SetBuildFolder();
                GUIUtility.ExitGUI();
            }

            EditorGUILayout.EndHorizontal();
        }