docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UnityPurchasingEditor

    Editor tools to set build-time configurations for app stores.

    Inheritance
    object
    UnityPurchasingEditor
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Purchasing
    Assembly: UnityEditor.Purchasing.dll
    Syntax
    [InitializeOnLoad]
    public static class UnityPurchasingEditor

    Methods

    FindPaths(string)

    To enable or disable importation of assets at build-time, collect Project-relative paths matching filename.

    Declaration
    public static string[] FindPaths(string filename)
    Parameters
    Type Name Description
    string filename

    Name of file to search for in this Project

    Returns
    Type Description
    string[]

    Relative paths matching filename

    TargetAndroidStore(AppStore)

    Target a specified Android store. This sets the correct plugin importer settings for the store and writes the choice to BillingMode.json so the player can choose the correct store API at runtime.

    Declaration
    public static void TargetAndroidStore(AppStore target)
    Parameters
    Type Name Description
    AppStore target

    App store to enable for next build

    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)