文档

Unity Engine

Unity Engine

scrollOffset

The current scrolling position.
阅读时间1 分钟最后更新于 1 个月前

Definition

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.