PointerMoveEvent
This event is sent when a pointer changes state.
Read time 3 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: PointerEventBase<PointerMoveEvent>
- Implements: IDisposable, IPointerEvent
public sealed class PointerMoveEvent : PointerEventBase<PointerMoveEvent>, IDisposable, IPointerEvent
Remarks
The state of a pointer changes when one or more of its properties change, such as the mouse button pressure changes, or a different mouse button is pressed.
A follows the default pointer event propagation path. It trickles down, bubbles up, and is cancellable.
PointerMoveEventDisabled elements don't receive this event.
For information about how the relates to other pointer events, refer to PointerEventBase<T> and Pointer events.
PointerMoveEventConstructors
Constructor | Description |
|---|---|
| PointerMoveEvent() | Constructor. Avoid creating new event instances. Instead, use GetPooled() to get an instance from a pool of reusable event instances. |
Methods
Method | Description |
|---|---|
| Init | Resets the event members to their initial values. |