docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method BeginTransaction

    BeginTransaction(BaseTransaction, List<string>)

    Process a transaction.

    Declaration
    public static Deferred<TransactionResult> BeginTransaction(BaseTransaction transaction, List<string> costItemIds = null)
    Parameters
    Type Name Description
    BaseTransaction transaction

    A BaseTransaction to process.

    List<string> costItemIds

    If this is a virtual transaction with item costs, this is the list of items to consume. If this argument is null or empty, the first inventory items that satisfy the cost will be consumed.

    Returns
    Type Description
    Deferred<TransactionResult>

    Returns a Deferred struct which can be used to track the state of the transaction.

    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)