docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SingleCollectionCatalog<TItem>

    The base class of the catalog storing only one kind of CatalogItem. This kind is obviously described by TItem. Most of the catalogs are single collections at the moment.

    Inheritance
    object
    SingleCollectionCatalog<TItem>
    CurrencyCatalog
    GameParameterCatalog
    InventoryCatalog
    StoreCatalog
    TransactionCatalog
    Namespace: UnityEngine.GameFoundation
    Assembly: solution.dll
    Syntax
    public abstract class SingleCollectionCatalog<TItem> where TItem : CatalogItem
    Type Parameters
    Name Description
    TItem

    The type of CatalogItem stored in this catalog.

    Methods

    Name Description
    ContainsItem(string)

    Tells whether an item with the specified key exists or not.

    FindItem(string)

    Looks for a TItem instance by its key.

    FindItemsByTag(string)

    Returns an array of all the TItem instances of this catalog matching the Tag by its key.

    FindItemsByTag(string, ICollection<TItem>)

    Fills in the given target collection with all TItem instances of this catalog matching the Tag by its key and returns their count. The target collection is cleared before being populated.

    FindItemsByTag(Tag)

    Returns the array of all the TItem instances of this catalog matching the given Tag.

    FindItemsByTag(Tag, ICollection<TItem>)

    Fills in the given target collection with all TItem instances of this catalog matching the given tag and returns their count. The target collection is cleared before being populated.

    GetItems()

    Returns an array of all the TItem isntances of this catalog.

    GetItems(ICollection<TItem>)

    Fills in the given target collection with all TItem instances of this catalog and returns their count. The target collection is cleared before being populated.

    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)