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
    GameParameterAsset
    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.DefaultCatalog
    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.

    key

    The identifier of the CatalogItem constructed from this asset.

    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.

    DeserializeListsToDictionary<TKey, TValue>(List<TKey>, List<TValue>, Dictionary<TKey, TValue>)

    Deserialize the given lists into the given dictionary.

    FindTag(string)

    Looks for a TagAsset, linked to this CatalogItemAsset instance, by its key.

    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.

    GetStaticProperties()

    Get all static properties stored in this item.

    GetTags()

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

    GetTags(ICollection<TagAsset>)

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

    HasTag(string)

    Tells whether or not a TagAsset instance with the given key is within this CatalogItemAsset instance.

    HasTag(TagAsset)

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

    OnAfterItemDeserialize()

    Called at the end of OnAfterDeserialize. Enable inheritance to add specific deserialization process.

    OnBeforeItemSerialize()

    Called at the end of OnBeforeSerialize. Enable inheritance to add specific serialization process.

    Extension Methods

    CatalogItemAssetUtility.AddDetail<TDetailAsset>(CatalogItemAsset)
    CatalogItemAssetUtility.AddStaticProperty(CatalogItemAsset, string, Property)
    CatalogItemAssetUtility.AddTag(CatalogItemAsset, TagAsset)
    CatalogItemAssetUtility.RemoveTag(CatalogItemAsset, TagAsset)
    CatalogItemAssetUtility.SetDisplayName(CatalogItemAsset, string)
    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)