Class UnityPurchasingEditor
Editor tools to set build-time configurations for app stores.
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 |
TargetAndroidStore(AndroidStore)
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
[Obsolete("Use TargetAndroidStore(AppStore) instead")]
public static void TargetAndroidStore(AndroidStore target)
Parameters
Type | Name | Description |
---|---|---|
AndroidStore | target | App store to enable for next build |
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 |