PointerCancelEvent
This event is sent when pointer interaction is cancelled.
Read time 3 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: PointerEventBase<PointerCancelEvent>
- Implements: IDisposable, IPointerEvent
public sealed class PointerCancelEvent : PointerEventBase<PointerCancelEvent>, IDisposable, IPointerEvent
Remarks
A PointerCancelEvent can trickle down or bubble up, but cannot be cancelled. Disabled elements won't receive this event by default.
See PointerEventBase<T> to see how PointerCancelEvent relates to other pointer events.
Constructors
Constructor | Description |
|---|---|
| PointerCancelEvent() | 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. |