---
title: GetChangeVersion(Entity, ComponentType)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/entities/globalentitymanager/getchangeversion
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/entities/globalentitymanager/getchangeversion.md
last_updated: 2026-11-10
generated_at: 2026-11-13T17:30:19.693Z
locale: en-us
---

# GetChangeVersion(Entity, ComponentType)

> Gets the version of a component in the chunk that holds an entity.

## Definition

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

```csharp
public static uint GetChangeVersion(Entity entity, ComponentType type)
```

### Parameters

**** (\[Entity]\(/engine/7000.0/script-reference/unity/entities/entity)): The entity.**** (\[ComponentType]\(/engine/7000.0/script-reference/unity/entities/componenttype)): The component type.

### Returns

| Type                                                         | Description         |
| ------------------------------------------------------------ | ------------------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | The change version. |

### Remarks

The version is the same one [ArchetypeChunk.GetChangeVersion](/engine/7000.0/script-reference/unity/entities/archetypechunk/getchangeversion.md) returns, so it is per chunk, not per entity. Writing to the component in any entity of the chunk sets it to the world's current [EntityManager.GlobalSystemVersion](/engine/7000.0/script-reference/unity/entities/entitymanager/globalsystemversion.md). A structural change can also set it.
