# EntityIdIsValid(EntityId)

> Checks whether an EntityId corresponds to a valid Object in memory. The Object could have been deleted or not loaded into memory yet.

## Definition

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

```csharp
public static bool EntityIdIsValid(EntityId entityId)
```

### Parameters

**** (\[EntityId]\(/engine/6000.7/script-reference/unityengine/entityid)): EntityId of an [Object](/engine/6000.7/script-reference/unityengine/object.md).

### Returns

| Type                                                          | Description                                                                                                            |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | true if the EntityId corresponds to a valid [Object](/engine/6000.7/script-reference/unityengine/object.md) in memory. |
