public Vector2 delta;
Описание
Относительное движение мыши по сравнению с последним событием.
Используется в EventType.MouseMove, EventType.MouseDrag, EventType.ScrollWheel события.
Смотрите так же: Event.mousePosition.
using UnityEngine;
public class Example : MonoBehaviour
{
// Move the scroll wheel to determine
// the X & Y scrolling amount.
void OnGUI()
{
Event e = Event.current;
if (e.isMouse)
{
Debug.Log(e.delta);
}
}
}