docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RemoveInventoriesByDefinition

    RemoveInventoriesByDefinition(string)

    This method will remove the Inventory that uses the InventoryDefinition with the given Id.

    Declaration
    public static int RemoveInventoriesByDefinition(string inventoryDefinitionId)
    Parameters
    Type Name Description
    string inventoryDefinitionId

    The Id of the InventoryDefinition we want to remove.

    Returns
    Type Description
    int

    The amount of inventories that were removed.

    RemoveInventoriesByDefinition(int)

    This method will remove the Inventory that uses the InventoryDefinition with the given Hash.

    Declaration
    public static int RemoveInventoriesByDefinition(int inventoryDefinitionHash)
    Parameters
    Type Name Description
    int inventoryDefinitionHash

    The Hash of the InventoryDefinition we want to remove.

    Returns
    Type Description
    int

    The amount of inventories that were removed.

    RemoveInventoriesByDefinition(InventoryDefinition)

    This method will remove the Inventory that uses the given InventoryDefinition.

    Declaration
    public static int RemoveInventoriesByDefinition(InventoryDefinition inventoryDefinition)
    Parameters
    Type Name Description
    InventoryDefinition inventoryDefinition

    The InventoryDefinition we want to remove.

    Returns
    Type Description
    int

    The amount of inventories that were removed.

    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)