IsFeatureEnabled()
Check if frame timing statistics are enabled.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static bool IsFeatureEnabled()
Returns
Type | Description |
|---|---|
| bool | Whether frame timing statistics are enabled. |
Remarks
When enabled, the Player collects CPU and GPU frame timing statistics that can be accessed using FrameTimingManager.CaptureFrameTimings.
Note: The FrameTimingManager is always active on Development Player builds. However, to use this feature in release Player builds, go to Edit > Project Settings > Player and enable the Frame Timing Stats property. If you enable the feature in settings, it remains active whether or not you need it at a specific point in time.