Example #1
0
        void ShowFilters()
        {
            EditorGUI.BeginChangeCheck();
            CustomEditorBase.BeginBox();
            GUILayout.Space(2);
            EditorGUILayout.BeginHorizontal();

            float labelWidth = EditorGUIUtility.labelWidth;

            EditorGUIUtility.labelWidth = 42;

            pathFilter = CustomEditorBase.FolderPathButton(pathFilter, Application.dataPath.Substring(0, Application.dataPath.Length - "Assets".Length), "Filter".ToGUIContent(), GUILayout.MinWidth(200));

            EditorGUIUtility.labelWidth = labelWidth;

            GUILayout.Space(32);

            searchFilter = EditorGUILayout.TextField(searchFilter, new GUIStyle("ToolbarSeachTextField"));

            if (GUILayout.Button("", new GUIStyle("ToolbarSeachCancelButton")))
            {
                EditorGUIUtility.editingTextField = false;
                searchFilter = "";
            }

            EditorGUILayout.EndHorizontal();
            CustomEditorBase.EndBox();
            if (EditorGUI.EndChangeCheck())
            {
                SetOrdererMaterials();
                Save();
            }
        }