# GetGenericData(string)

> Gets generic data from the drag and drop operation.

## Definition

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

```csharp
public object GetGenericData(string key)
```

### Parameters

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

### Returns

| Type                                                           | Description                                         |
| -------------------------------------------------------------- | --------------------------------------------------- |
| [Object](https://learn.microsoft.com/dotnet/api/system.object) | The generic data associated with the specified key. |
