当滑动时

界面
客户端
Only PC
可触发:
触摸板控件

在触摸板滑动中触发,在滑动中,每帧都会触发一次此事件

声明

event OnDrag(player entity<Player>, startPosition Vector2, delta Vector2)
go

参数

名称 类型 描述
玩家 Player 触发玩家
位置 Vector2 开始滑动位置
位移量 Vector2 位移量