# GetAreaEnabled(ProfilerArea)

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

## Definition

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

```csharp
public static bool GetAreaEnabled(ProfilerArea area)
```

### Parameters

**** (\[ProfilerArea]\(/engine/6000.0/script-reference/unityengine/profiling/profilerarea)): Which area 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 [ProfilerArea](/engine/6000.0/script-reference/unityengine/profiling/profilerarea.md) is currently enabled. |

### Remarks

Enabled areas emit stats and samples. Each enabled area adds to the profiler overhead. To disable an area, either close the corresponding chart in the [ProfilerWindow](/engine/6000.0/script-reference/unityeditor/profilerwindow.md) or call [Profiler.SetAreaEnabled](/engine/6000.0/script-reference/unityengine/profiling/profiler/setareaenabled.md).
