Esempio n. 1
0
        public EasyAssetBundleBuildAssetView(TreeViewState state, MultiColumnHeader multicolumnHeader, TreeModel <EditorAssetInfo> model) : base(state, multicolumnHeader, model)
        {
            //Assert.AreEqual( m_SortOptions.Length, Enum.GetValues( typeof( Columns ) ).Length, "Ensure number of sort options are in sync with number of MyColumns enum values" );

            // Custom setup
            rowHeight = kRowHeights;
            columnIndexForTreeFoldouts    = 2;
            showAlternatingRowBackgrounds = true;
            showBorder                        = false;
            customFoldoutYOffset              = (kRowHeights - EditorGUIUtility.singleLineHeight) * 0.5f; // center foldout in the row since we also center content. See RowGUI
            extraSpaceBeforeIconAndLabel      = kToggleWidth;
            multicolumnHeader.sortingChanged += OnSortingChanged;

            Reload();
        }