# GetTypeIndexFromStableTypeHash(ulong)

> Returns the TypeIndex for a given TypeManager.TypeInfo.StableTypeHash

## Definition

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

```csharp
public static TypeIndex GetTypeIndexFromStableTypeHash(ulong stableTypeHash)
```

### Parameters

**** (\[ulong]\(https\://learn.microsoft.com/dotnet/api/system.uint64)): Component [TypeManager.TypeInfo.StableTypeHash](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/stabletypehash.md)

### Returns

| Type                                                                     | Description                                                                                                       |
| ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------- |
| [TypeIndex](/engine/7000.0/script-reference/unity/entities/typeindex.md) | Component TypeIndex, otherwise [TypeIndex.Null](/engine/7000.0/script-reference/unity/entities/typeindex/null.md) |
