docs.unity.cn
    Show / Hide Table of Contents

    Class StoreCallbackExtensionMethods

    This class is an extension class on IStoreCallback to add the functionality to FindProductById

    Inheritance
    Object
    StoreCallbackExtensionMethods
    Namespace: UnityEngine.Purchasing
    Syntax
    public static class StoreCallbackExtensionMethods

    Methods

    FindProductById(IStoreCallback, String)

    Find a product by it's product ID or StoreSpecificID

    Declaration
    public static Product FindProductById(this IStoreCallback storeCallback, string sku)
    Parameters
    Type Name Description
    IStoreCallback storeCallback

    The StoreCallback to extend

    String sku

    The ID to search

    Returns
    Type Description
    Product

    Returns the product with the ID or null

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 20 April 2021