Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


mouseDelta

Gets the difference between the mouse's position during the previous mouse event and its position during the current mouse event.
Read time 1 minuteLast updated 12 days ago

Definition

public Vector2 mouseDelta { get; protected set; }

Remarks

This value is based on _mousePosition and is expressed in panel coordinates.