docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetIntValue

    GetIntValue(GameItem, string)

    Get's the value of the specified Stat on specified GameItem.

    Declaration
    public static int GetIntValue(GameItem gameItem, string statDefinitionId)
    Parameters
    Type Name Description
    GameItem gameItem

    GameItem upon which Stat is to be inspected.

    string statDefinitionId

    StatDefinition's Id to search for.

    Returns
    Type Description
    int

    Current Stat value.

    GetIntValue(GameItem, int)

    Get's the value of the specified Stat on specified GameItem.

    Declaration
    public static int GetIntValue(GameItem gameItem, int statDefinitionHash)
    Parameters
    Type Name Description
    GameItem gameItem

    GameItem upon which Stat is to be inspected.

    int statDefinitionHash

    StatDefinition's Hash to search for.

    Returns
    Type Description
    int

    Current Stat value.

    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)