Scripting API

ScrollView

class in UnityEngine.UIElements · UnityEngine.UIElementsModule · inherits from VisualElement

21 of 34 of Unity's membersUnity's documentation
In Tassix

A viewport that clips a content container larger than it and scrolls it with the wheel.

Constructors 1

Fields 6

static readonly string contentUssClassName
static readonly string horizontalVariantUssClassName
static readonly string ussClassName
static readonly string verticalHorizontalVariantUssClassName
static readonly string verticalVariantUssClassName
static readonly string viewportUssClassName

Properties 13

VisualElement contentContainer { get; }
VisualElement contentViewport { get; }
float elasticity { get; set; }
float horizontalPageSize { get; set; }
Scroller horizontalScroller { get; }
ScrollerVisibility horizontalScrollerVisibility { get; set; }
ScrollViewMode mode { get; set; }
float mouseWheelScrollSize { get; set; }
float scrollDecelerationRate { get; set; }
Vector2 scrollOffset { get; set; }
float verticalPageSize { get; set; }
Scroller verticalScroller { get; }
ScrollerVisibility verticalScrollerVisibility { get; set; }

Methods 1

void ScrollTo(VisualElement child)

Not in Tassix yet 13

contentAndVerticalScrollUssClassName elasticAnimationIntervalMs hScrollerUssClassName horizontalVariantContentUssClassName horizontalVariantViewportUssClassName nestedInteractionKind scrollVariantUssClassName touchScrollBehavior vScrollerUssClassName verticalHorizontalVariantContentUssClassName verticalHorizontalVariantViewportUssClassName verticalVariantContentUssClassName verticalVariantViewportUssClassName

Checked against Unity

Conformance scenarios that exercise it, recorded in Unity and compared event by event.