touchScrollDirection
The direction in which the content moves when a user drags it using touch, a pen, or a tracked device.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
[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.