与上次事件相比该鼠标的相对移动。
Used in EventType.MouseMove, EventType.MouseDrag, EventType.ScrollWheel events.
另请参阅: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); } } }