# StartDrag

> Utility function used to initiate a drag operation from a search view.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.5/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

## StartDrag(Object\[], string)

Utility function used to initiate a drag operation from a search view.

```csharp
public static void StartDrag(Object[] objects, string label = null)
```

### Parameters

**** (\[Object\[]]\(/engine/6000.5/script-reference/unityengine/object)): Objects being dragged.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Drag label.

### Remarks

See [SearchProvider.startDrag](/engine/6000.5/script-reference/unityeditor/search/searchprovider/startdrag.md).

## StartDrag(Object\[], string\[], string)

Utility function used to initiate a drag operation from a search view.

```csharp
public static void StartDrag(Object[] objects, string[] paths, string label = null)
```

### Parameters

**** (\[Object\[]]\(/engine/6000.5/script-reference/unityengine/object)): Objects being dragged.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Asset paths being dragged.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Drag label.

### Remarks

See [SearchProvider.startDrag](/engine/6000.5/script-reference/unityeditor/search/searchprovider/startdrag.md).
