PointerUpEvent
This event is sent when a pointer's last pressed button is released.
Read time 3 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: PointerEventBase<PointerUpEvent>
- Implements: IDisposable, IPointerEvent
public sealed class PointerUpEvent : PointerEventBase<PointerUpEvent>, IDisposable, IPointerEvent
Remarks
The last pressed button may or may not be the same button that triggered the PointerDownEvent.
A PointerUpEvent uses the default pointer event propagation path: it is trickled down, bubbled up and can be cancelled. Disabled elements won't receive this event by default.
See PointerEventBase<T> to see how PointerUpEvent relates to other pointer events.
Constructors
Constructor | Description |
|---|---|
| PointerUpEvent() | 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. |