# operator ==(EntityId, EntityId)

> Determines whether two EntityId instances are equal.

## Definition

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

```csharp
public static bool operator ==(EntityId left, EntityId right)
```

### Parameters

**** (\[EntityId]\(/engine/6000.7/script-reference/unityengine/entityid)): **** (\[EntityId]\(/engine/6000.7/script-reference/unityengine/entityid)):&#x20;

### Returns

| Type                                                          | Description                                        |
| ------------------------------------------------------------- | -------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the EntityIds are equal; otherwise, false. |
