docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method HasInventoryByDefinition

    HasInventoryByDefinition(string)

    This method checks if an Inventory exists with the given InventoryDefinition Id.

    Declaration
    public static bool HasInventoryByDefinition(string inventoryDefinitionId)
    Parameters
    Type Name Description
    string inventoryDefinitionId

    The Id we are checking for.

    Returns
    Type Description
    bool

    True/False whether or not the Inventory is found in the InventoryManager.

    HasInventoryByDefinition(int)

    This method checks if an Inventory exists for given InventoryDefinition Hash.

    Declaration
    public static bool HasInventoryByDefinition(int inventoryDefinitionHash)
    Parameters
    Type Name Description
    int inventoryDefinitionHash

    The Hash we are checking for.

    Returns
    Type Description
    bool

    True/False whether or not the Inventory is found in the InventoryManager.

    HasInventoryByDefinition(InventoryDefinition)

    This method checks if an Inventory exists for specified InventoryDefinition.

    Declaration
    public static bool HasInventoryByDefinition(InventoryDefinition inventoryDefinition)
    Parameters
    Type Name Description
    InventoryDefinition inventoryDefinition

    The InventoryDefinition we are checking for.

    Returns
    Type Description
    bool

    True/False whether or not the Inventory is found in the InventoryManager.

    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)