docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SingleCollectionCatalogAsset<TItemAsset>

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

    Inheritance
    object
    Object
    ScriptableObject
    BaseCatalogAsset
    SingleCollectionCatalogAsset<TItemAsset>
    CurrencyCatalogAsset
    GameParameterCatalogAsset
    InventoryCatalogAsset
    StoreCatalogAsset
    TransactionCatalogAsset
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    BaseCatalogAsset.database
    BaseCatalogAsset.Awake()
    BaseCatalogAsset.OnBeforeSerializeCatalog()
    BaseCatalogAsset.OnAfterDeserializeCatalog()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: UnityEngine.GameFoundation.DefaultCatalog
    Assembly: solution.dll
    Syntax
    public abstract class SingleCollectionCatalogAsset<TItemAsset> : BaseCatalogAsset, ISerializationCallbackReceiver where TItemAsset : CatalogItemAsset
    Type Parameters
    Name Description
    TItemAsset

    The type of CatalogItemAsset this catalog provides

    Fields

    Name Description
    s_TempList

    Temporary list of TItem for internal optimization.

    Methods

    Name Description
    AwakeCatalog()

    Override this method to initialize the specifics of the inherited class.

    ConfigureCatalog(CatalogBuilder)

    Configures the specified builder with the specific content of this catalog.

    ConfigureSingleCollectionCatalog(CatalogBuilder)

    Configures the specified builder with the specific content of this SingleCollectionCatalog<TItem> isntance.

    ContainsItem(string)

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

    FindItem(string)

    Looks for a TItemAsset instance by its key.

    FindItemsByTag(string)

    Returns an array of all the TItemAsset instances of this catalog matching the TagAsset by its key

    FindItemsByTag(string, ICollection<TItemAsset>)

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

    FindItemsByTag(TagAsset)

    Returns an array of all the TItemAsset instances of this catalog matching the given tag

    FindItemsByTag(TagAsset, ICollection<TItemAsset>)

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

    FindItemsByTag<TInheritedItemAsset>(string)

    Returns an array of all the TInheritedItemAsset instances of this catalog matching the TagAsset by its key

    FindItemsByTag<TInheritedItemAsset>(string, ICollection<TItemAsset>)

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

    FindItemsByTag<TInheritedItemAsset>(TagAsset)

    Returns an array of all the TInheritedItemAsset instances of this catalog matching the given tag

    FindItemsByTag<TInheritedItemAsset>(TagAsset, ICollection<TItemAsset>)

    Fills in the given target collection with all TInheritedItemAsset 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 TItemAsset instances of this catalog.

    GetItems(ICollection<TItemAsset>)

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

    GetItems<TInheritedItemAsset>()

    Returns an array of all the TInheritedItemAsset instances of this catalog.

    GetItems<TInheritedItemAsset>(ICollection<TInheritedItemAsset>)

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

    InitializeCatalog()

    Initializes the catalog.

    InitializeSingleCollectionCatalog()
    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)