docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PurchasableDetailDefinition

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

    Constructors

    Name Description
    PurchasableDetailDefinition(List<Price>, Payout, string, string)

    Sets up a detail for multiple price points and a single payout. Also has optional parameters for default source and destination overrides.

    PurchasableDetailDefinition(Price, Payout, string, string)

    Sets up a detail for a single price and single payout. Also has optional parameters for default source and destination overrides.

    Properties

    Name Description
    defaultDestinationInventoryId

    Inventory to deposit into if OutputItem doesn't specify an inventory to deposit into.

    defaultSourceInventoryId

    Inventory to look into if InputItem doesn't specify an inventory to look into.

    payout

    The output for this transaction

    Methods

    Name Description
    GetPrice(string)

    Retrieve the price with the given id on this detail. Ideally this method should only be used when the developer knows the detail only has one price with the given id. If there are multiple prices with that id, it will simply return the first one, which is hard to determine exactly what it will be with multiple.

    GetPriceKeys()

    Checks all prices for keys and returns an array of all keys with no duplicates.

    GetPrices(string)

    This is for getting all prices with a given id.

    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)