docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor StatItemSerializableData

    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.

    Declaration
    public StatItemSerializableData(StatDictionarySerializableData.StatType type, int gameItemId, string definitionId, object value, object defaultValue)
    Parameters
    Type Name Description
    StatDictionarySerializableData.StatType type

    The stat type to use.

    int gameItemId

    The id of the game item.

    string definitionId

    The id of the definition.

    object value

    The value we are serializing.

    object defaultValue

    The default value to use if needed.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    Thrown if the given type is not valid.

    StatItemSerializableData()

    Default constructor for serialization purpose.

    Declaration
    public StatItemSerializableData()
    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)