# IsCategoryEnabled(ProfilerCategory)

> Returns whether or not a given ProfilerCategory is currently enabled.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Profiling](/engine/6000.5/script-reference/unityengine/profiling.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static bool IsCategoryEnabled(ProfilerCategory category)
```

### Parameters

**** (\[ProfilerCategory]\(/engine/6000.5/script-reference/unity/profiling/profilercategory)): Which category you want to check the state of.

### Returns

| Type                                                          | Description                                                                                                                                  |
| ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns whether or not a given [ProfilerCategory](/engine/6000.5/script-reference/unity/profiling/profilercategory.md) is currently enabled. |

### Remarks

Enabled categories emit stats and samples. Each enabled category adds to the profiler overhead. To disable a category, either close the corresponding chart in the [ProfilerWindow](/engine/6000.5/script-reference/unityeditor/profilerwindow.md) or call [Profiler.SetCategoryEnabled](/engine/6000.5/script-reference/unityengine/profiling/profiler/setcategoryenabled.md).
