The Editor.ScrollbarMode.Auto
field is a member of the Editor.ScrollbarMode
enumeration. It specifies that the scrollbar should only be displayed when it is necessary, such as when the content overflows the visible area.
The Editor.ScrollbarMode.Auto
field is a member of the Editor.ScrollbarMode
enumeration. It specifies that the scrollbar should only be displayed when it is necessary, such as when the content overflows the visible area.
Use Editor.ScrollbarMode.Auto
when you want the scrollbar to appear only when the content exceeds the viewable area, providing a cleaner interface when the scrollbar is not needed.
// Example of using Editor.ScrollbarMode.Auto public class MyEditorComponent : Component { public void ConfigureScrollbar() { // Assuming 'editor' is an instance of a UI component that supports scrollbar modes editor.ScrollbarMode = Editor.ScrollbarMode.Auto; } }