Class PointerDownEvent
This event is sent when a pointer is pressed.
Inheritance
PointerDownEvent
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public sealed class PointerDownEvent : PointerEventBase<PointerDownEvent>, IPointerEvent, IPointerEventInternal
Remarks
A PointerDownEvent is sent the first time a finger touches the screen or a mouse button is pressed. Additional button presses and touches with additional fingers trigger PointerMoveEvents.
A PointerDownEvent uses the default pointer event propagation path: it trickles down, bubbles up and can be cancelled.
See PointerEventBase<T> to see how PointerDownEvent relates to other pointer events.
Constructors
PointerDownEvent()
Constructor. Avoid creating new event instances. Instead, use GetPooled() to get an instance from a pool of reusable event instances.
Declaration
public PointerDownEvent()
Methods
Init()
Resets the event members to their initial values.
Declaration
protected override void Init()
Overrides
UnityEngine.UIElements.PointerEventBase<UnityEngine.UIElements.PointerDownEvent>.Init()
PostDispatch(IPanel)
Declaration
protected override void PostDispatch(IPanel panel)
Parameters
Type | Name | Description |
---|---|---|
IPanel | panel |
Overrides
UnityEngine.UIElements.PointerEventBase<UnityEngine.UIElements.PointerDownEvent>.PostDispatch(UnityEngine.UIElements.IPanel)