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
    InventoryCatalogAsset
    StoreCatalogAsset
    TransactionCatalogAsset
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    BaseCatalogAsset.database
    BaseCatalogAsset.Awake()
    BaseCatalogAsset.GetCategoryOrDie(string, string)
    BaseCatalogAsset.FindCategory(string)
    BaseCatalogAsset.ContainsCategory(string)
    BaseCatalogAsset.GetCategories()
    BaseCatalogAsset.GetCategories(ICollection<CategoryAsset>)
    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.CatalogManagement
    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 id exists or not.

    FindItem(string)

    Looks for a TItemAsset instance by its id.

    FindItemsByCategory(string)

    Returns an array of all the TItemAsset instances of this catalog matching the CategoryAsset by its id

    FindItemsByCategory(string, ICollection<TItemAsset>)

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

    FindItemsByCategory(CategoryAsset)

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

    FindItemsByCategory(CategoryAsset, ICollection<TItemAsset>)

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

    FindItemsByCategory<TInheritedItemAsset>(string)

    Returns an array of all the TInheritedItemAsset instances of this catalog matching the CategoryAsset by its id

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

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

    FindItemsByCategory<TInheritedItemAsset>(CategoryAsset)

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

    FindItemsByCategory<TInheritedItemAsset>(CategoryAsset, ICollection<TItemAsset>)

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