ScrollTo(VisualElement)
Scroll to a specific child element.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsControlsModule
public void ScrollTo(VisualElement child)
Parameters
The child to scroll to.
Remarks
This example creates a ScrollView that contains multiple labels. A Button is used to scroll to a selected label.