# ToEntityId(ObjectIdentifier)

> Tries to return the EntityId that represents this ObjectIdentifier.

## Definition

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

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

### Parameters

**** (\[ObjectIdentifier]\(/engine/6000.7/script-reference/unityeditor/build/content/objectidentifier)): The object identifier to convert.

### Returns

| Type                                                                | Description                                                                                                                                                                        |
| ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [EntityId](/engine/6000.7/script-reference/unityengine/entityid.md) | The [EntityId](/engine/6000.7/script-reference/unityengine/entityid.md) that corresponds to the specified object identifier, or EntityId.None if the object identifier is invalid. |

### Remarks

Returns EntityId.None if the ObjectIdentifier is invalid.
