docs.unity3d.com
    Show / Hide Table of Contents

    Struct ThermalMetrics

    ThermalMetrics stores the thermal state as TemperatureLevel, TemperatureTrend, and WarningLevel.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.AdaptivePerformance
    Syntax
    public struct ThermalMetrics

    Properties

    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.

    Declaration
    public float TemperatureLevel { readonly get; set; }
    Property Value
    Type Description
    Single

    Value in the range [0, 1].

    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.

    Declaration
    public float TemperatureTrend { readonly get; set; }
    Property Value
    Type Description
    Single

    Value in the range [-1, 1].

    WarningLevel

    Current thermal warning level.

    Declaration
    public WarningLevel WarningLevel { readonly get; set; }
    Property Value
    Type Description
    WarningLevel
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023