GetAreaEnabled(ProfilerArea)
Returns whether or not a given ProfilerArea is currently enabled.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Profiling
- Assembly: UnityEngine.CoreModule
public static bool GetAreaEnabled(ProfilerArea area)
Parameters
Which area you want to check the state of.
Returns
Type | Description |
|---|---|
| bool | Returns whether or not a given ProfilerArea 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 or call Profiler.SetAreaEnabled.