scrollOffset
The current scrolling position.
阅读时间1 分钟最后更新于 1 个月前
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.