# SetUnityObjectReferences(IEnumerable<Object>)

> Sets Unity Objects associated with the current drag-and-drop operation.

## Definition

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

> **Warning:**
>
> **Deprecated.** Use SetEntityIds instead, and call Object.GetEntityId() if you really need to convert from a Unity object to an EntityId.

```csharp
public void SetUnityObjectReferences(IEnumerable<Object> references)
```

### Parameters

**** (\[IEnumerable\<Object>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): The Unity Object references.
