# SetGenericData(string, object)

> Sets generic data for the drag and drop operation.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Hierarchy](/engine/6000.6/script-reference/unity/hierarchy.md)
* **Assembly:** UnityEngine.HierarchyModule

## SetGenericData(string, Object)

```csharp
public void SetGenericData(string key, object value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The key for this entry.**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The data to store.
