Class UnityPurchasingEditor
Editor tools to set build-time configurations for app stores.
Inherited Members
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 |
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 |