docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CatalogItemAsset

    Base class for most of the static data in Game Foundation.

    Inheritance
    object
    Object
    ScriptableObject
    CatalogItemAsset
    BaseTransactionAsset
    CurrencyAsset
    InventoryItemDefinitionAsset
    StoreAsset
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    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 CatalogItemAsset : ScriptableObject, ISerializationCallbackReceiver

    Properties

    Name Description
    catalog

    Reference to the catalog of this item.

    displayName

    The readable name of this CatalogItemAsset instance. It is used to make the Editor more comfortable, but it can also be used at runtime to display a readable information to the players.

    id

    The string Id of this GameItemDefinition.

    Methods

    Name Description
    Awake()

    Initializes the internal collections.

    AwakeDefinition()

    Overriden by inherited classes to initialize specific members.

    ConfigureItem(CatalogBuilder)

    Configures a specified builder with the specifics of this item.

    FindCategory(string)

    Looks for a CategoryAsset, linked to this CatalogItemAsset instance, by its id.

    GetCategories()

    Returns an array of all the CategoryAsset instances linked to this CatalogItemAsset instance. catalog.

    GetCategories(ICollection<CategoryAsset>)

    Fills the given target collection with all the CategoryAsset instances linked to this CatalogItemAsset instance. The target collection is cleared before being populated.

    GetDetail<TDetailAsset>()

    Gets the TDetailAsset instance by its type.

    GetDetails()

    Returns an array of all detail definitions on this game item definition.

    GetDetails(ICollection<BaseDetailAsset>)

    Fills in the given target collection with all the BaseDetailAsset instance of this CatalogItemAsset instance. The target collection is cleared before being populated.

    HasCategory(string)

    Tells whether or not a CategoryAsset instance with the given id is within this CatalogItemAsset instance.

    HasCategory(CategoryAsset)

    Tells whether or not the given category is within this CatalogItemAsset instance.

    OnAfterItemDeserialize()

    Called at the end of OnAfterDeserialize, it enabled inheritance to add specific deserialization process.

    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)