Version 3.3.1.2

OdinMenuTreeDrawingConfig class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public class OdinMenuTreeDrawingConfig
The config used by OdinMenuTree to specify which features of the Menu Tree should be used when drawing.
Inheritance
  • System.Object
  • OdinMenuTreeDrawingConfig

Constructors

OdinMenuTreeDrawingConfig()
public OdinMenuTreeDrawingConfig()

Fields

AutoFocusSearchBar
Whether to automatically set focus on the search bar when the tree is drawn for the first time. True by default.
public bool AutoFocusSearchBar
AutoHandleKeyboardNavigation
Whether to handle keyboard navigation after it's done drawing. True by default.
public bool AutoHandleKeyboardNavigation
AutoScrollOnSelectionChanged
The automatic scroll on selection changed. True by default.
public bool AutoScrollOnSelectionChanged
DrawScrollView
Whether to draw the tree in a scrollable view. True by default.
public bool DrawScrollView
DrawSearchToolbar
Whether to draw a searchbar above the menu tree. True by default.
public bool DrawSearchToolbar
EXPERIMENTAL_INTERNAL_DrawFlatTreeFastNoLayout
public bool EXPERIMENTAL_INTERNAL_DrawFlatTreeFastNoLayout
EXPERIMENTAL_INTERNAL_SparseFixedLayouting
Will only handle layouting when there has been a hierarchical change (such as an item being expanded or collapsed).
public bool EXPERIMENTAL_INTERNAL_SparseFixedLayouting
ScrollPos
The scroll-view position.
public Vector2 ScrollPos
SearchTerm
The search term.
public string SearchTerm
SearchToolbarHeight
The height of the search toolbar.
public int SearchToolbarHeight
SelectMenuItemsOnMouseDown
Whether to select menu items on mouse down, or on click. False by default.
public bool SelectMenuItemsOnMouseDown
UseCachedExpandedStates
Whether to the menu items expanded state should be cached. True by default.
public bool UseCachedExpandedStates

Properties

ConfirmSelectionOnDoubleClick
By default, the MenuTree.Selection is confirmed when menu items are double clicked, Set this to false if you don't want that behaviour.
public bool ConfirmSelectionOnDoubleClick { get; set; }
DefaultMenuStyle
Gets or sets the default menu item style.
public OdinMenuStyle DefaultMenuStyle { get; set; }
SearchFunction
Gets or sets the search function. Null by default.
public Func<OdinMenuItem, bool> SearchFunction { get; set; }