Version: 2022.3
언어: 한국어
public Vector2 delta ;

설명

The relative movement of the mouse compared to last event.

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); } } }