docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InventorySerializableData

    Serializable data structure that contains the state of an inventory.

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

    Constructors

    Name Description
    InventorySerializableData()

    Default constructor for serialization purpose

    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.

    Properties

    Name Description
    definitionId

    The definition Id of the inventory

    gameItemLookupId

    The GameItemId of the item use by GameItemLookup

    inventoryId

    The inventory id of the inventory

    items

    The items this inventory contains

    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)