docs.unity3d.com
    Show / Hide Table of Contents

    Class UnityPurchasingEditor

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

    Inheritance
    Object
    UnityPurchasingEditor
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.Purchasing
    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. Note: This can fail if preconditions are not met for the AppStore.UDP target.

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

    App store to enable for next build

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023