文档

Unity Engine

Unity Engine

GetAreaEnabled(ProfilerArea)

Returns whether or not a given ProfilerArea is currently enabled.
阅读时间1 分钟最后更新于 1 个月前

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.