Version: Unity 6.0 (6000.0)
LanguageEnglish
  • C#

ScrollView

class in UnityEngine.UIElements

/

Inherits from:UIElements.VisualElement

/

Implemented in:UnityEngine.UIElementsModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Displays its contents inside a scrollable frame. For more information, see ScrollView.

Static Properties

Property Description
contentAndVerticalScrollUssClassName USS class name of content elements in elements of this type.
contentUssClassName USS class name of content elements in elements of this type.
horizontalVariantContentUssClassName USS class name that's added when the ContentContainer is in horizontal mode. ScrollViewMode.Horizontal
horizontalVariantUssClassName USS class name that's added when the ScrollView is in horizontal mode. ScrollViewMode.Horizontal
horizontalVariantViewportUssClassName USS class name that's added when the Viewport is in horizontal mode. ScrollViewMode.Horizontal
hScrollerUssClassName USS class name of horizontal scrollers in elements of this type.
ussClassName USS class name of elements of this type.
verticalHorizontalVariantContentUssClassName USS class name that's added when the ContentContainer is in both horizontal and vertical mode. ScrollViewMode.VerticalAndHorizontal
verticalHorizontalVariantUssClassName USS class name that's added when the ScrollView is in both horizontal and vertical mode. ScrollViewMode.VerticalAndHorizontal
verticalHorizontalVariantViewportUssClassName USS class name that's added when the Viewport is in both horizontal and vertical mode. ScrollViewMode.VerticalAndHorizontal
verticalVariantContentUssClassName USS class name that's added when the ContentContainer is in vertical mode. ScrollViewMode.Vertical
verticalVariantUssClassName USS class name that's added when the ScrollView is in vertical mode. ScrollViewMode.Vertical
verticalVariantViewportUssClassName USS class name that's added when the Viewport is in vertical mode. ScrollViewMode.Vertical
viewportUssClassName USS class name of viewport elements in elements of this type.
vScrollerUssClassName USS class name of vertical scrollers in elements of this type.

Properties

Property Description
contentContainer Contains full content, potentially partially visible.