docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetPrice

    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.

    Declaration
    public Price GetPrice(string name = "default")
    Parameters
    Type Name Description
    string name

    The id to search for

    Returns
    Type Description
    Price

    The price with the matching 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)