docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Rewards

    Represent the rewards given in exchange for a purchase.

    Inheritance
    object
    Rewards
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Economy.Model
    Assembly: Unity.Services.Economy.dll
    Syntax
    [Preserve]
    public class Rewards

    Constructors

    Rewards(List<CurrencyExchangeItem>, List<InventoryExchangeItem>)

    Declaration
    [Preserve]
    [JsonConstructor]
    public Rewards(List<CurrencyExchangeItem> currencies, List<InventoryExchangeItem> inventory)
    Parameters
    Type Name Description
    List<CurrencyExchangeItem> currencies
    List<InventoryExchangeItem> inventory

    Fields

    Currency

    A list of CurrencyExchangeItem describing the currencies rewarded as part of this purchase.

    Declaration
    [Preserve]
    public List<CurrencyExchangeItem> Currency
    Field Value
    Type Description
    List<CurrencyExchangeItem>

    Inventory

    A list of InventoryExchangeItem describing the items rewarded as part of this purchase.

    Declaration
    [Preserve]
    public List<InventoryExchangeItem> Inventory
    Field Value
    Type Description
    List<InventoryExchangeItem>
    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)