docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StatItemSerializableData

    Serializable data structure that contains the state of a StatItem.

    Inheritance
    object
    StatItemSerializableData
    Namespace: UnityEngine.GameFoundation.DataPersistence
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class StatItemSerializableData

    Constructors

    Name Description
    StatItemSerializableData()

    Default constructor for serialization purpose.

    StatItemSerializableData(StatType, int, string, object, object)

    Basic constructor that take in the type of the value of the stat, the GameItem hash id of the stat, the definition id of the stat, the current value and the default value of the stat.

    Properties

    Name Description
    defaultFloatValue

    The float value of the stat when StatDictionary type is a float.

    defaultIntValue

    The default int value of the stat when StatDictionary type is an int.

    definitionId

    The definition id of the stat.

    floatValue

    The float value of the stat when StatDictionary type is a float.

    gameItemId

    The GameItem hash id of the stat.

    intValue

    The int value of the stat when StatDictionary type is an int.

    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)