# EntityIdsToGUIDs(NativeArray<EntityId>, NativeArray<GUID>)

> Sets a NativeArray of GUID s for every valid EntityId that is an asset.

## Definition

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

```csharp
public static void EntityIdsToGUIDs(NativeArray<EntityId> entityIds, NativeArray<GUID> guidsOut)
```

### Parameters

**** (\[NativeArray\<EntityId>]\(/engine/6000.3/script-reference/unity/collections/nativearray1)): **** (\[NativeArray\<GUID>]\(/engine/6000.3/script-reference/unity/collections/nativearray1)):&#x20;

### Remarks

Both arrays must be the same length and initialised before calling. The caller is responsible for the lifetime of these arrays. If an EntityId is not valid or does not refer to an Object that is an asset, the GUID will be set to default.
