SwipeDirection
*此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按 此处。
偷取方向枚表示用户在 UserInputService.TouchEnabled 设备上滑动的方向。
GuiObject.TouchSwipe 和 UserInputService.TouchSwipe 事件将这个枚举作为参数传递。
项目
名称 | 值 | 概要 |
---|---|---|
Right | 0 | 用户向右滑动。 |
Left | 1 | 用户向左滑动。 |
Up | 2 | 用户向上滑动。 |
Down | 3 | 用户向下滑动。 |
None | 4 | 用户没有向特定方向滑动。 |