# Clickable

> Manipulator that tracks pointer events on an element and callbacks when the elements is clicked.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Inherits from:** [PointerManipulator](/engine/6000.7/script-reference/unityengine/uielements/pointermanipulator.md)
* **Implements:** [IManipulator](/engine/6000.7/script-reference/unityengine/uielements/imanipulator.md)

```csharp
public class Clickable : PointerManipulator, IManipulator
```

## Remarks

See [\_clicked](/engine/6000.7/script-reference/unityengine/uielements/clickable/clicked.md) for more information on what it means for an element to be clicked in the context of this manipulator.

## Constructors

| Constructor                                                                                                                                                          | Description  |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| [Clickable(System.Action)](/engine/6000.7/script-reference/unityengine/uielements/clickable/ctor.md#clickable\(action\))                                             | Constructor. |
| [Clickable(System.Action,System.Int64,System.Int64)](/engine/6000.7/script-reference/unityengine/uielements/clickable/ctor.md#clickable\(action-long-long\))         | Constructor. |
| [Clickable(System.Action\{UnityEngine.UIElements.EventBase})](/engine/6000.7/script-reference/unityengine/uielements/clickable/ctor.md#clickable\(actioneventbase\)) | Constructor. |

## Properties

| Property                                                                                                   | Description                                                                                               |
| ---------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| [active](/engine/6000.7/script-reference/unityengine/uielements/clickable/active.md)                       | This property tracks the activation of the manipulator. Set it to true when the manipulator is activated. |
| [lastMousePosition](/engine/6000.7/script-reference/unityengine/uielements/clickable/lastmouseposition.md) | Specifies the mouse position saved during the last mouse event on the target Element.                     |

## Methods

| Method                                                                                                                             | Description                                                                  |
| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| [Invoke](/engine/6000.7/script-reference/unityengine/uielements/clickable/invoke.md)                                               | Invokes a click action.                                                      |
| [OnPointerDown](/engine/6000.7/script-reference/unityengine/uielements/clickable/onpointerdown.md)                                 | This method is called when a PointerDownEvent is sent to the target element. |
| [OnPointerMove](/engine/6000.7/script-reference/unityengine/uielements/clickable/onpointermove.md)                                 | This method is called when a PointerMoveEvent is sent to the target element. |
| [OnPointerUp](/engine/6000.7/script-reference/unityengine/uielements/clickable/onpointerup.md)                                     | This method is called when a PointerUpEvent is sent to the target element.   |
| [ProcessCancelEvent](/engine/6000.7/script-reference/unityengine/uielements/clickable/processcancelevent.md)                       | This method processes the up cancel sent to the target Element.              |
| [ProcessDownEvent](/engine/6000.7/script-reference/unityengine/uielements/clickable/processdownevent.md)                           | This method processes the down event sent to the target Element.             |
| [ProcessMoveEvent](/engine/6000.7/script-reference/unityengine/uielements/clickable/processmoveevent.md)                           | This method processes the move event sent to the target Element.             |
| [ProcessUpEvent](/engine/6000.7/script-reference/unityengine/uielements/clickable/processupevent.md)                               | This method processes the up event sent to the target Element.               |
| [RegisterCallbacksOnTarget](/engine/6000.7/script-reference/unityengine/uielements/clickable/registercallbacksontarget.md)         | Called to register mouse event callbacks on the target element.              |
| [UnregisterCallbacksFromTarget](/engine/6000.7/script-reference/unityengine/uielements/clickable/unregistercallbacksfromtarget.md) | Called to unregister event callbacks from the target element.                |

## Events

| Member                                                                                                           | Description                                                                  |
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| [clicked](/engine/6000.7/script-reference/unityengine/uielements/clickable/clicked.md)                           | Callback triggered when the target element is clicked.                       |
| [clickedWithEventInfo](/engine/6000.7/script-reference/unityengine/uielements/clickable/clickedwitheventinfo.md) | Callback triggered when the target element is clicked, including event data. |

## Inheritance

**Inherited Members:**

* [PointerManipulator.CanStartManipulation(IPointerEvent)](/engine/6000.7/script-reference/unityengine/uielements/pointermanipulator/canstartmanipulation.md)
* [PointerManipulator.CanStopManipulation(IPointerEvent)](/engine/6000.7/script-reference/unityengine/uielements/pointermanipulator/canstopmanipulation.md)
* [MouseManipulator.CanStartManipulation(IMouseEvent)](/engine/6000.7/script-reference/unityengine/uielements/mousemanipulator/canstartmanipulation.md)
* [MouseManipulator.CanStopManipulation(IMouseEvent)](/engine/6000.7/script-reference/unityengine/uielements/mousemanipulator/canstopmanipulation.md)
* [MouseManipulator.activators](/engine/6000.7/script-reference/unityengine/uielements/mousemanipulator/activators.md)
* [Manipulator.target](/engine/6000.7/script-reference/unityengine/uielements/manipulator/target.md)
