docs.unity.cn
    Show / Hide Table of Contents

    Method GetFloat

    GetFloat(String, Single)

    Retrieves the float value of a corresponding key from the remote service, if one exists.

    Declaration
    public float GetFloat(string key, float defaultValue = 0F)
    Parameters
    Type Name Description
    String key

    The key identifying the corresponding setting.

    Single defaultValue

    The default value to use if the specified key cannot be found or is unavailable.

    Returns
    Type Description
    Single

    A float representation of the key from the remote service, if one exists. If one does not exist, the defaultValue is returned (0.0F if none is supplied.)

    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on Monday, March 13, 2023
    Terms of use