Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetAreaEnabled(ProfilerArea)

Returns whether or not a given ProfilerArea is currently enabled.
Read time 1 minuteLast updated 7 days ago

Definition

public static bool GetAreaEnabled(ProfilerArea area)

Parameters

Which area you want to check the state of.

Returns

Type

Description

boolReturns 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.