docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StoreCallbackExtensionMethods

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

    Inheritance
    object
    StoreCallbackExtensionMethods
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Purchasing
    Assembly: UnityEngine.Purchasing.Stores.dll
    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

    In This Article
    Back to top
    Copyright © 2025 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)