# GetEntityIdArray(string, EntityId[])

> Retrieve an EntityId array.

## Definition

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

```csharp
public static EntityId[] GetEntityIdArray(string key, EntityId[] defaultValue)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[EntityId\[]]\(/engine/6000.5/script-reference/unityengine/entityid)):&#x20;

### Returns

| Type                                                                    | Description |
| ----------------------------------------------------------------------- | ----------- |
| [EntityId\[\]](/engine/6000.5/script-reference/unityengine/entityid.md) |             |
