Unity - Scripting API: ThermalMetrics
struct in UnityEngine.AdaptivePerformance
/
Implemented in:UnityEngine.AdaptivePerformanceModule
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
ThermalMetrics stores the thermal state as TemperatureLevel, TemperatureTrend, and WarningLevel.
Properties
| Property | Description |
|---|---|
| TemperatureLevel | Current normalized temperature level in the range of [0, 1]. A value of 0 means standard operation temperature and that the device is not in a throttling state. A value of 1 means that the device has reached maximum temperature and is either going into or is already in throttling state. |
| TemperatureTrend | Current normalized temperature trend in the range of [-1, 1]. A value of 1 describes a rapid increase in temperature. A value of 0 describes a constant temperature. A value of -1 describes a rapid decrease in temperature. Note: It takes at least 10s until the temperature trend can start reflecting any changes. |
| WarningLevel | Current thermal warning level. |