book_4_sparkGenerated
code_blocksInput

Description

The Editor.ScrollbarMode.On field is a member of the Editor.ScrollbarMode enumeration. It specifies that the scrollbar should always be visible, regardless of the content size or other conditions. This mode is useful when you want to ensure that users can always see and interact with the scrollbar, providing a consistent user interface experience.

Usage

Use Editor.ScrollbarMode.On when you want the scrollbar to be permanently displayed in your editor interface. This can be particularly useful in scenarios where the content is expected to be scrollable, and you want to provide immediate visual feedback to the user.

Example

// Example of setting the scrollbar mode to always be visible
Editor.ScrollbarMode scrollbarMode = Editor.ScrollbarMode.On;

// Use the scrollbarMode in your editor setup
EditorWindow editorWindow = new EditorWindow();
editorWindow.SetScrollbarMode(scrollbarMode);