docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor InventoryItemSerializableData

    InventoryItemSerializableData(string, 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 inventoryId, string definitionId, int quantity, int gameItemId)
    Parameters
    Type Name Description
    string inventoryId

    The Id of the inventory this item belongs to

    string definitionId

    The definition Id of the inventory item

    int quantity

    The quantity of this item contained in the inventory

    int gameItemId

    The GameItemId of the item use by GameItemLookup

    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)