docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetStatValue

    SetStatValue(string, string, StatValue, Completer)

    Request to create or update the stat item defined by the given ids.

    Declaration
    void SetStatValue(string gameItemId, string statDefinitionId, StatValue value, Completer completer)
    Parameters
    Type Name Description
    string gameItemId

    Game item's id the stat item is connected to.

    string statDefinitionId

    Definition's Id the stat item is based on.

    StatValue value

    Value to set to the stat item.

    Completer completer

    The handle to settle the promise with.

    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)