docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Price

    Represents the set of items that need to be paid with for a transaction.

    Inheritance
    object
    Price
    Namespace: UnityEngine.GameFoundation
    Assembly: solution.dll
    Syntax
    public class Price

    Constructors

    Name Description
    Price(List<InputItem>, string)

    Constructor for defining a price with multiple items of input.

    Price(InputItem, string)

    Constructor for defining a price with only a single input item. Many prices will be simple like this so this constructor avoids the need of passing a whole list.

    Price(Price)

    Copy constructor for setting up a new Price based off on a existing one.

    Properties

    Name Description
    name

    Identification for this price point

    Methods

    Name Description
    GetInputItems()

    Array of InputItems to be paid out.

    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)