# CheckInternalConsistency()

> Several checks to ensure that the EntityComponentStore has all references that are expected at this time as well as the expected number of entities.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
[Conditional("UNITY_DOTS_DEBUG")]
public void CheckInternalConsistency()
```

### Remarks

These checks can not safely run while any jobs are running against this EntityManager's World. The caller should consider calling CompleteAllTrackedJobs() first to enforce this constraint.
