docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetStatFloat

    GetStatFloat(string)

    Gets the Float Stat for the input statDefinitionId

    Declaration
    public float GetStatFloat(string statDefinitionId)
    Parameters
    Type Name Description
    string statDefinitionId

    statDefinitionId for stat to get

    Returns
    Type Description
    float

    Stat with parameter Id

    Exceptions
    Type Condition
    KeyNotFoundException

    Thrown if an Float Stat with parameter Id is not found.

    ArgumentNullException

    The parameter is null or empty

    GetStatFloat(int)

    Gets the Float Stat for the input statDefinitionHash

    Declaration
    public float GetStatFloat(int statDefinitionHash)
    Parameters
    Type Name Description
    int statDefinitionHash

    statDefinitionHash for stat to get

    Returns
    Type Description
    float

    Stat with parameter hash

    Exceptions
    Type Condition
    KeyNotFoundException

    Thrown if an Float Stat with parameter hash is not found.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)