Documentation

Unity Engine

Unity Engine

MouseDrag

Mouse was dragged.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UICommonModule
MouseDrag = 3

Remarks

The mouse was moved with a button held down - a mouse drag. Use Event.mousePosition and Event.delta to determine mouse motion.