Class ClickEvent
This event is sent when the left mouse button is clicked.
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public sealed class ClickEvent : PointerEventBase<ClickEvent>, IPointerEvent, IPointerEventInternal
Remarks
A click consists of a mouse down event followed by a mouse up event on the same VisualElement. The mouse might move between the two events but the move is ignored as long as the mouse down and mouse up events occur on the same VisualElement.
A ClickEvent uses the default pointer event propagation path: it trickles down, bubbles up and can be cancelled.
See PointerEventBase<T> to see how ClickEvent relates to other pointer events.