docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StatItem<T>

    This is one record in the Stat Manager’s list of current Stats at runtime.

    Inheritance
    object
    StatItem<T>
    Namespace: UnityEngine.GameFoundation
    Assembly: solution.dll
    Syntax
    public class StatItem<T> where T : new()
    Type Parameters
    Name Description
    T

    Properties

    Name Description
    defaultValue

    Default (initial) value for this Stat to allow resetting as needed.

    definitionId

    Stat definition Id string.

    gameItemId

    Hash of gameItem and is the same Id as the first key of Dictionary in the StatManager.

    value

    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)