docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MakeVirtualPurchaseResult

    Returned after making a virtual purchase and contains the Costs and Rewards associate with the purchase.

    Inheritance
    object
    MakeVirtualPurchaseResult
    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 MakeVirtualPurchaseResult

    Constructors

    MakeVirtualPurchaseResult(Costs, Rewards)

    Creates an instance of MakeVirtualPurchaseResult

    Declaration
    [Preserve]
    [JsonConstructor]
    public MakeVirtualPurchaseResult(Costs costs, Rewards rewards)
    Parameters
    Type Name Description
    Costs costs

    Represents the Costs that were spent in this purchase.

    Rewards rewards

    Represents the Rewards that were given in exchange for this purchase.

    Fields

    Costs

    Represents the Costs that were spent in this purchase.

    Declaration
    [Preserve]
    public Costs Costs
    Field Value
    Type Description
    Costs

    Rewards

    Represents the Rewards that were given in exchange for this purchase.

    Declaration
    [Preserve]
    public Rewards Rewards
    Field Value
    Type Description
    Rewards
    In This Article
    Back to top
    Copyright © 2025 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)