docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor InventoryItemSerializableData

    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.

    Declaration
    public InventoryItemSerializableData(string definitionId, int quantity, int gameItemLookupId)
    Parameters
    Type Name Description
    string definitionId

    The definition Id of the inventory item

    int quantity

    The quantity of this item contained in the inventory

    int gameItemLookupId

    The GameItemId of the item use by GameItemLookup

    InventoryItemSerializableData()

    Default constructor for serialization purpose.

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