# GetGlobalObjectIdsSlow

> Creates an array of unique object identifiers based on an array of objects.

## Definition

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

## GetGlobalObjectIdsSlow(Object\[], GlobalObjectId\[])

Creates an array of unique object identifiers based on an array of objects.

```csharp
public static void GetGlobalObjectIdsSlow(Object[] objects, GlobalObjectId[] outputIdentifiers)
```

### Parameters

**** (\[Object\[]]\(/engine/6000.5/script-reference/unityengine/object)): Array of objects to obtain unique identifiers for.**** (\[GlobalObjectId\[]]\(/engine/6000.5/script-reference/unityeditor/globalobjectid)): Array of `GlobalObjectId` objects to write to.

### Remarks

For each item in `objects`, this method obtains its unique `GlobalObjectId` and writes it to the corresponding element in `outputIdentifiers`. Both arrays must be the same size.

This method is slow. Use it sparingly and avoid making multiple calls.

Additional Resources: [GlobalObjectId.GetGlobalObjectIdSlow](/engine/6000.5/script-reference/unityeditor/globalobjectid/getglobalobjectidslow.md), [Object.GetInstanceID()](/engine/6000.5/script-reference/unityengine/object/getinstanceid.md)

## GetGlobalObjectIdsSlow(int\[], GlobalObjectId\[])

Creates an array of unique object identifiers based on an array of instance IDs.

> **Warning:**
>
> **Removed.** GlobalObjectId.GetGlobalObjectIdSlow(int\[], \[Out] GlobalObjectId\[]) is obsolete. Use GlobalObjectId.GetGlobalObjectIdSlow(EntityId\[], \[Out] GlobalObjectId\[]) is obsolete instead.

```csharp
public static void GetGlobalObjectIdsSlow(int[] instanceIds, GlobalObjectId[] outputIdentifiers)
```

### Parameters

**** (\[int\[]]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Array of instance IDs of the objects to obtain unique identifiers for.**** (\[GlobalObjectId\[]]\(/engine/6000.5/script-reference/unityeditor/globalobjectid)): Array of `GlobalObjectId` objects to write to.

### Remarks

For each object identified by an item in `instanceIds`, this method obtains the unique `GlobalObjectId` and writes it to the corresponding element in `outputIdentifiers`. Both arrays must be the same size.

This method is slow. Use it sparingly and avoid making multiple calls.

Additional Resources: [GlobalObjectId.GetGlobalObjectIdSlow](/engine/6000.5/script-reference/unityeditor/globalobjectid/getglobalobjectidslow.md), [Object.GetInstanceID()](/engine/6000.5/script-reference/unityengine/object/getinstanceid.md)

## GetGlobalObjectIdsSlow(EntityId\[], GlobalObjectId\[])

Creates an array of unique object identifiers based on an array of objects.

```csharp
public static void GetGlobalObjectIdsSlow(EntityId[] entityIds, GlobalObjectId[] outputIdentifiers)
```

### Parameters

**** (\[EntityId\[]]\(/engine/6000.5/script-reference/unityengine/entityid)): **** (\[GlobalObjectId\[]]\(/engine/6000.5/script-reference/unityeditor/globalobjectid)): Array of `GlobalObjectId` objects to write to.

### Remarks

For each item in `objects`, this method obtains its unique `GlobalObjectId` and writes it to the corresponding element in `outputIdentifiers`. Both arrays must be the same size.

This method is slow. Use it sparingly and avoid making multiple calls.

Additional Resources: [GlobalObjectId.GetGlobalObjectIdSlow](/engine/6000.5/script-reference/unityeditor/globalobjectid/getglobalobjectidslow.md), [Object.GetInstanceID()](/engine/6000.5/script-reference/unityengine/object/getinstanceid.md)
