# GetComponentType(int)

> Gets a ComponentType for the type stored at the index in the list.

## Definition

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

```csharp
public ComponentType GetComponentType(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index in the list.

### Returns

| Type                                                                             | Description                                                                                                                          |
| -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| [ComponentType](/engine/7000.0/script-reference/unity/entities/componenttype.md) | Returns the ComponentType for the type stored at the index in the list. The returned ComponentType always has access mode ReadWrite. |
