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: 2.0.0.0

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 ConfirmSlecectionOnDoubleClick By default, the MenuTree.Selection is confirmed when menu items are double clicked, Set this to false if you don't want that behaviour.
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.
bool UseCachedExpandedStates Whether to the menu items expanded state should be cached. True by default.

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.