# SetDragZone

> Sets the drag zone for the driven field.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

## SetDragZone(VisualElement)

Sets the drag zone for the driven field.

```csharp
public void SetDragZone(VisualElement dragElement)
```

### Parameters

**** (\[VisualElement]\(/engine/6000.6/script-reference/unityengine/uielements/visualelement)): The target of the drag operation.

## SetDragZone(VisualElement, Rect)

Sets the drag zone for the driven field.

```csharp
public abstract void SetDragZone(VisualElement dragElement, Rect hotZone)
```

### Parameters

**** (\[VisualElement]\(/engine/6000.6/script-reference/unityengine/uielements/visualelement)): The target of the drag operation.**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): The rectangle that contains the drag zone.
