docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetStatValue

    GetStatValue(string, string)

    Gets the stat of an item by the gameItemId and the statDefinitionId.

    Declaration
    StatValue GetStatValue(string gameItemId, string statDefinitionId)
    Parameters
    Type Name Description
    string gameItemId

    The id of the game item

    string statDefinitionId

    The id of the stat definition

    Returns
    Type Description
    StatValue

    The value of the stat

    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)