PointerStationaryEvent
This event is sent when a pointer does not change for a set amount of time, determined by the operating system.
Read time 3 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: PointerEventBase<PointerStationaryEvent>
- Implements: IDisposable, IPointerEvent
public sealed class PointerStationaryEvent : PointerEventBase<PointerStationaryEvent>, IDisposable, IPointerEvent
Remarks
After a PointerDownEvent is sent, this event is sent if a PointerMoveEvent or a PointerUpEvent is not sent before a set amount of time.
A PointerStationaryEvent uses the default pointer event propagation path: it trickles down, bubbles up and can be cancelled. Disabled elements receive this event by default.
See PointerEventBase<T> to see how PointerStationaryEvent relates to other pointer events.
Constructors
Constructor | Description |
|---|---|
| PointerStationaryEvent() | 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. |