コード例 #1
0
        /// <summary>
        /// Draw output settings.
        /// </summary>
        protected virtual void DrawOutputBuildSettings()
        {
            GUILayout.Space(8);

            EditorGUILayout.LabelField("Output Options", EditorStyles.boldLabel);

            EditorGUI.indentLevel++;
            // Open output.
            var buildsName = _serializedObject.FindProperty("_buildsName");

            EditorGUILayout.PropertyField(buildsName);
            var buildsDirectoryName = _serializedObject.FindProperty("_buildsDirectoryName");

            EditorGUILayout.PropertyField(buildsDirectoryName);

            var rect       = EditorGUILayout.GetControlRect(true);
            var buildsPath = _serializedObject.FindProperty("_buildsPath");

            EditorGUIExtensions.DirectoryPathField(rect, buildsPath, new GUIContent("Builds Path"),
                                                   "Select builds output directory.");
            EditorGUILayout.PropertyField(_serializedObject.FindProperty("_openBuildPathAfterBuild"));
            EditorGUI.indentLevel--;
        }
コード例 #2
0
        protected virtual void DrawExcludeDirectoriesList(Rect rect, int index, bool isActive, bool isFocused)
        {
            var element = roExcludeDirectoriesList.serializedProperty.GetArrayElementAtIndex(index);

            EditorGUIExtensions.DirectoryPathField(rect, element, GUIContent.none, "Select exclude directory in build.");
        }