文档

Unity Engine

Unity Engine

touchScrollDirection

The direction in which the content moves when a user drags it using touch, a pen, or a tracked device.
阅读时间1 分钟最后更新于 11 天前

Definition

[UxmlAttribute]public ScrollView.TouchScrollDirection touchScrollDirection { get; set; }

Remarks

This applies to touch, pen, and tracked device input, such as XR controllers, on both screen-space and world-space panels. It doesn't affect dragging with a mouse, dragging the scrollers, or scrolling with a mouse wheel. The default is ScrollView.TouchScrollDirection.Natural.