예제 #1
0
        /// <summary>
        /// 绘制编辑器窗体中的类别信息
        /// </summary>
        private void DrawTabs()
        {
            int selectedIndex = (int)categorySelected;

            selectedIndex    = GUILayout.Toolbar(selectedIndex, categoryNames.ToArray());
            categorySelected = categories[selectedIndex];
        }
예제 #2
0
        private void DrawTabs()
        {
            int index = (int)_categorySelected;

            index             = GUILayout.Toolbar(index, _categoryLabels.ToArray());
            _categorySelected = _categories[index];
        }
예제 #3
0
 private void DrawTabs()
 {
     int index = (int) _categorySelected;
     index = GUILayout.Toolbar(index, _categoryLabels);
     _categorySelected = _categories[index];
 }
 private void DrawTabs()
 {
     _categorySelected = (PaletteItem.Category)GUILayout.Toolbar((int)_categorySelected, _categoryLabels.ToArray());
 }