Documentation

Unity Engine

Download Unity

Unity Engine

scrollWheelDeltaPerTick

The magnitude of Event.delta that corresponds to one tick of the scroll wheel.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UICommonModule
public const float scrollWheelDeltaPerTick = 3

Remarks

Divide the Event.delta of an EventType.ScrollWheel event by this value to get the number of scroll wheel ticks. UI Toolkit's
WheelEvent
uses the same scale, exposed as
WheelEvent.scrollDeltaPerTick
, so scroll distances are consistent between IMGUI and UI Toolkit, in the Editor and at runtime.