docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor InventorySerializableData

    InventorySerializableData(string, string, InventoryItemSerializableData[], int)

    Basic constructor that takes in an inventory definition id and an array of InventoryItemData of all inventory items contained in the inventory.

    Declaration
    public InventorySerializableData(string definitionId, string inventoryId, InventoryItemSerializableData[] items, int gameItemLookupId)
    Parameters
    Type Name Description
    string definitionId

    The definition id of the inventory

    string inventoryId
    InventoryItemSerializableData[] items

    The inventory items contained in the inventory

    int gameItemLookupId

    The GameItemId of the item use by GameItemLookup

    InventorySerializableData()

    Default constructor for serialization purpose

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