# GetCombinedComponentOrderVersion

> This method is obsolete. Use EntityManager.GetComponentOrderVersion instead.

## Definition

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

## GetCombinedComponentOrderVersion()

This method is obsolete. Use [EntityManager.GetComponentOrderVersion](/engine/7000.0/script-reference/unity/entities/entitymanager/getcomponentorderversion.md) instead.

> **Warning:**
>
> **Deprecated.** This function is deprecated, and will be removed in a future release. Use the new variant instead, with includeEntityType set to true.

```csharp
public int GetCombinedComponentOrderVersion()
```

### Returns

| Type                                                       | Description                                                                                                                                                                                                         |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Returns the sum of the order versions of all components required by this query, including the [Entity](/engine/7000.0/script-reference/unity/entities/entity.md) component type implicitly required by all queries. |

## GetCombinedComponentOrderVersion(bool)

This method computes the sum of the order versions for all components required by this query.

```csharp
public int GetCombinedComponentOrderVersion(bool includeEntityType)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, the implicit [Entity](/engine/7000.0/script-reference/unity/entities/entity.md) component implicitly required by all queries is included for the purposes of this calculation. This is not generally desirable, as adding or removing entities to any archetype would affect the combined order versions of all queries.

### Returns

| Type                                                       | Description                                                                     |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Returns the sum of the order versions of all components required by this query. |
