scrollOffset
The current scrolling position.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public Vector2 scrollOffset { get; set; }
Remarks
You can set this property to scroll the content to a specific position. For example, to scroll to the bottom of the ScrollView, set this property to the maximum value of the vertical scroller. Refer to the UXML element ScrollView user manual page for an example.