# IsValid()

> Determines whether this EntityId is set to a value other than EntityId.None.

## Definition

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

```csharp
public bool IsValid()
```

### Returns

| Type                                                          | Description                                       |
| ------------------------------------------------------------- | ------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if this EntityId is valid; otherwise, false. |

### Remarks

A valid `EntityId` isn't necessarily the identifier of an object that is currently loaded. To check whether the identified object is loaded, use `Resources.EntityIdIsValid`.
