Class ProductCatalogEditor
Editor window for displaying and editing the contents of the default ProductCatalog.
Inherited Members
Namespace: UnityEditor.Purchasing
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 |
---|---|
ProductCatalog |
Methods
Export(String, String, Boolean)
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. |
Boolean | eraseExport | If true, it will just erase the export file and do nothing else. |
Returns
Type | Description |
---|---|
Boolean | Whether or not the export was succesful. Always returns false if eraseExport is true. |
GetAuthCode<T>(T)
Gets the authenticate code of a web response.
Declaration
public void GetAuthCode<T>(T response)
Parameters
Type | Name | Description |
---|---|---|
T | response | The web response from which to extract the auth code |
Type Parameters
Name | Description |
---|---|
T | Type of the web response passed. |
SetCatalogValidationResults(ProductCatalogEditor.ExporterValidationResults, List<ProductCatalogEditor.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 |
---|---|---|
ProductCatalogEditor.ExporterValidationResults | catalogResults | Validation results of the exported catalog |
List<ProductCatalogEditor.ExporterValidationResults> | 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()