docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetStatInt

    GetStatInt(string)

    Gets the Int Stat for the input statDefinitionId

    Declaration
    public int GetStatInt(string statDefinitionId)
    Parameters
    Type Name Description
    string statDefinitionId

    statDefinitionId for stat to get

    Returns
    Type Description
    int

    Stat with parameter Id

    Exceptions
    Type Condition
    KeyNotFoundException

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

    ArgumentNullException

    The parameter is null or empty

    GetStatInt(int)

    Gets the Int Stat for the input statDefinitionHash

    Declaration
    public int GetStatInt(int statDefinitionHash)
    Parameters
    Type Name Description
    int statDefinitionHash

    statDefinitionHash for stat to get

    Returns
    Type Description
    int

    Stat with parameter hash

    Exceptions
    Type Condition
    KeyNotFoundException

    Thrown if an Int 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)