# GetCategoryInfo(ushort)

> Gets the Profiler category information for a given category ID.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Profiling](/engine/6000.7/script-reference/unityeditor/profiling.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public ProfilerCategoryInfo GetCategoryInfo(ushort id)
```

### Parameters

**** (\[ushort]\(https\://learn.microsoft.com/dotnet/api/system.uint16)): The ID for the Category.

### Returns

| Type                                                                                                  | Description                                                                                                      |
| ----------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| [ProfilerCategoryInfo](/engine/6000.7/script-reference/unityeditor/profiling/profilercategoryinfo.md) | Returns a ProfilerCategoryInfo struct based on the supplied ID. If the ID doesn't exist, an exception is thrown. |
