docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AutoFillCostItemIds

    AutoFillCostItemIds(ICollection<string>)

    Gets a list of the first InventoryItem ids from the inventory that satisfy the cost of a transaction.

    Declaration
    public void AutoFillCostItemIds(ICollection<string> costItemIds)
    Parameters
    Type Name Description
    ICollection<string> costItemIds

    An existing collection of strings to populate (must be non-null and must be empty).

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the collection passed in is not empty.

    NotEnoughItemOfDefinitionException

    Thrown if the cost can't be met. (You should use VerifyCost before using this method.)

    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)