docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CurrencyAsset

    Stores the information of a currency in a ScriptableObject.

    Inheritance
    object
    Object
    ScriptableObject
    CatalogItemAsset
    CurrencyAsset
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    CatalogItemAsset.displayName
    CatalogItemAsset.key
    CatalogItemAsset.catalog
    CatalogItemAsset.GetTags()
    CatalogItemAsset.GetTags(ICollection<TagAsset>)
    CatalogItemAsset.GetDetails()
    CatalogItemAsset.GetDetails(ICollection<BaseDetailAsset>)
    CatalogItemAsset.GetDetail<TDetailAsset>()
    CatalogItemAsset.FindTag(string)
    CatalogItemAsset.HasTag(TagAsset)
    CatalogItemAsset.HasTag(string)
    CatalogItemAsset.GetStaticProperties()
    CatalogItemAsset.Awake()
    CatalogItemAsset.AwakeDefinition()
    CatalogItemAsset.OnBeforeItemSerialize()
    CatalogItemAsset.OnAfterItemDeserialize()
    CatalogItemAsset.DeserializeListsToDictionary<TKey, TValue>(List<TKey>, List<TValue>, Dictionary<TKey, TValue>)
    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 class CurrencyAsset : CatalogItemAsset, ISerializationCallbackReceiver

    Properties

    Name Description
    initialBalance

    The balance provided to a new player.

    maximumBalance

    The maximum balance a player can have.

    type

    Tells whether the currency is Soft or Hard. This value has no impact on the behaviour of the currency, and is just set for the matter of analytics. All currencies are handled the same way in Game Foundation.

    Methods

    Name Description
    ConfigureItem(CatalogBuilder)

    Configures a specified builder with the specifics of this item.

    Extension Methods

    CatalogItemAssetUtility.AddDetail<TDetailAsset>(CatalogItemAsset)
    CatalogItemAssetUtility.AddStaticProperty(CatalogItemAsset, string, Property)
    CatalogItemAssetUtility.AddTag(CatalogItemAsset, TagAsset)
    CatalogItemAssetUtility.RemoveTag(CatalogItemAsset, TagAsset)
    CatalogItemAssetUtility.SetDisplayName(CatalogItemAsset, string)
    CurrencyAssetUtility.SetInitialBalance(CurrencyAsset, long)
    CurrencyAssetUtility.SetMaximumBalance(CurrencyAsset, long)
    CurrencyAssetUtility.SetType(CurrencyAsset, CurrencyType)
    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)