Class ProductCatalogEditor
Editor window for displaying and editing the contents of the default ProductCatalog.
Inherited Members
Namespace: UnityEditor .Purchasing
Assembly: solution.dll
Syntax
public class ProductCatalogEditor : EditorWindow
Fields
ProductCatalogEditorMenuPath
The path in the Menu bar where the ProductCatalogEditor
item is located.
Declaration
public const string ProductCatalogEditorMenuPath = "Services/In-App Purchasing/IAP Catalog..."
Field Value
Type | Description |
---|---|
string |
Properties
Catalog
Property which gets the ProductCatalog
instance which is being edited.
Declaration
public ProductCatalog Catalog { get; }
Property Value
Type | Description |
---|---|
Product |
Methods
Export(string, string, bool)
Exports the Catalog to a file for a particular store, or erases an existing exported file.
Declaration
public static bool Export(string storeName, string folder, bool eraseExport)
Parameters
Type | Name | Description |
---|---|---|
string | storeName | The name of the store to be exported. |
string | folder | The full path of the export file, including the file name. |
bool | eraseExport | If true, it will just erase the export file and do nothing else. |
Returns
Type | Description |
---|---|
bool | Whether or not the export was succesful. Always returns false if eraseExport is true. |
GetAuthCode<T>(T)
Declaration
[Obsolete("API to be removed with UDP deprecation.")]
public void GetAuthCode<T>(T response)
Parameters
Type | Name | Description |
---|---|---|
T | response |
Type Parameters
Name | Description |
---|---|
T |
SetCatalogValidationResults(ExporterValidationResults, List<ExporterValidationResults>)
Sets the results of the validation of catalog items upon export.
Declaration
public void SetCatalogValidationResults(ProductCatalogEditor.ExporterValidationResults catalogResults, List<ProductCatalogEditor.ExporterValidationResults> itemResults)
Parameters
Type | Name | Description |
---|---|---|
Product |
catalogResults | Validation results of the exported catalog |
List<Product |
itemResults | List of validation results of the exported items |
ShowWindow()
Opens the ProductCatalogEditor
Window or moves it to the front of the draw order.
Declaration
[MenuItem("Services/In-App Purchasing/IAP Catalog...", false, 200)]
public static void ShowWindow()