docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InventoryItemSerializableData

    Serializable data structure that contains the state of an inventory item.

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

    Constructors

    Name Description
    InventoryItemSerializableData()

    Default constructor for serialization purpose.

    InventoryItemSerializableData(string, int, int)

    Basic constructor that takes in the inventory item definition Id of the item and the quantity it have in this inventory.

    Properties

    Name Description
    definitionId

    The definition Id of the inventory item

    gameItemLookupId

    The GameItemId of the item use by GameItemLookup

    quantity

    The quantity of the inventory item in the inventory.

    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)