# GetEntityId()

> Gets the EntityId of the object.

## Definition

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

```csharp
public EntityId GetEntityId()
```

### Returns

| Type                                                                | Description                         |
| ------------------------------------------------------------------- | ----------------------------------- |
| [EntityId](/engine/6000.5/script-reference/unityengine/entityid.md) | Returns the EntityId of the object. |

### Remarks

The `EntityId` of an object acts like a handle to the in-memory instance. It is always unique, and never has the value `EntityId.None` for valid objects.
