# FromTypeIndex(TypeIndex)

> Returns a ComponentType with ComponentType.AccessMode.ReadWrite based on the typeIndex

## Definition

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

```csharp
public static ComponentType FromTypeIndex(TypeIndex typeIndex)
```

### Parameters

**** (\[TypeIndex]\(/engine/7000.0/script-reference/unity/entities/typeindex)): The index

### Returns

| Type                                                                             | Description        |
| -------------------------------------------------------------------------------- | ------------------ |
| [ComponentType](/engine/7000.0/script-reference/unity/entities/componenttype.md) | The component type |
