Class InventoryManagerSerializableData | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Class InventoryManagerSerializableData

    Serializable data structure that contains the state of the InventoryManager.

    Inheritance
    System.Object
    InventoryManagerSerializableData
    Namespace: UnityEngine.GameFoundation.DataPersistence
    Syntax
    [Serializable]
    public class InventoryManagerSerializableData : ISerializableData

    Constructors

    InventoryManagerSerializableData()

    Default constructor for serialization purpose.

    Declaration
    public InventoryManagerSerializableData()

    InventoryManagerSerializableData(InventorySerializableData[])

    Basic constructor that takes in an array of InventoryData of all runtime inventories.

    Declaration
    public InventoryManagerSerializableData(InventorySerializableData[] inventories)
    Parameters
    Type Name Description
    InventorySerializableData[] inventories

    The InventoryData array the RuntimeInventoryCatalogData is based of.

    Properties

    inventories

    Return the data of all runtime inventories

    Declaration
    public InventorySerializableData[] inventories { get; }
    Property Value
    Type Description
    InventorySerializableData[]

    Methods

    GetInventory(String)

    Return the data of the Inventory using the specified definition id

    Declaration
    public InventorySerializableData GetInventory(string definitionId)
    Parameters
    Type Name Description
    System.String definitionId

    The definition id of the Inventory we want.

    Returns
    Type Description
    InventorySerializableData

    The data of the Inventory with the requested Id.

    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX