# ToEntityId(ObjectIdentifier)

> Tries to return the EntityId that represents this ObjectIdentifier.

## Definition

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

```csharp
public static EntityId ToEntityId(ObjectIdentifier objectId)
```

### Parameters

**** (\[ObjectIdentifier]\(/engine/6000.3/script-reference/unityeditor/build/content/objectidentifier)):&#x20;

### Returns

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

### Remarks

Returns EntityId.None if the ObjectIdentifier is invalid.
