OdinMenuTreeDrawingConfig

The config used by OdinMenuTree to specify which features of the Menu Tree should be used when drawing.

namespace Sirenix.OdinInspector.Editor
{
public class OdinMenuTreeDrawingConfig
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 1.0.6.1

Fields

Return Type Definition Description
bool AutoFocusSearchBar Whether to automatically set focus on the search bar when the tree is drawn for the first time. True by default.
bool AutoHandleKeyboardNavigation Whether to handle keyboard navigation after it's done drawing. True by default.
bool AutoScrollOnSelectionChanged The automatic scroll on selection changed. True by default.
bool DrawScrollView Whether to draw the tree in a scrollable view. True by default.
bool DrawSearchToolbar Whether to draw a searchbar above the menu tree. True by default.
Vector2 ScrollPos The scroll-view position.
string SearchTerm The search term.
int SearchToolbarHeight The height of the search toolbar.

Properties

Return Type Definition Description
OdinMenuStyle DefaultMenuStyle Gets or sets the default menu item style.
Func<OdinMenuItem, bool> SearchFunction Gets or sets the search function.