# GetTypeInfo

> Retrieve the TypeInfo for the TypeIndex.

## Definition

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

## GetTypeInfo(TypeIndex)

Retrieve the TypeInfo for the [TypeIndex](/engine/7000.0/script-reference/unity/entities/typeindex.md).

```csharp
public static ref readonly TypeManager.TypeInfo GetTypeInfo(TypeIndex typeIndex)
```

### Parameters

**** (\[TypeIndex]\(/engine/7000.0/script-reference/unity/entities/typeindex)): TypeIndex to review the TypeInfo for

### Returns

| Type                                                                               | Description                                                           |
| ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| [TypeInfo](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo.md) | Returns the TypeInfo for the component corresponding to the TypeInfo. |

## GetTypeInfo\<T>()

Retrieve the TypeInfo for the component T.

```csharp
public static ref readonly TypeManager.TypeInfo GetTypeInfo<T>()
```

### Returns

| Type                                                                               | Description                                             |
| ---------------------------------------------------------------------------------- | ------------------------------------------------------- |
| [TypeInfo](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo.md) | The TypeInfo for the component corresponding to type T. |
