Class ProductCatalogEditor.ProductCatalogItemEditor
Inner class for displaying and editing the contents of a single entry in the ProductCatalog.
Inherited Members
Namespace: UnityEditor .Purchasing
Assembly: solution.dll
Syntax
public class ProductCatalogEditor.ProductCatalogItemEditor
Constructors
ProductCatalogItemEditor()
Default constructor. Creates a new ProductCatalogItem
to edit.
Declaration
public ProductCatalogItemEditor()
ProductCatalogItemEditor(ProductCatalogItem)
Constructor taking an instance of ProductCatalogItem
to edit.
Declaration
public ProductCatalogItemEditor(ProductCatalogItem description)
Parameters
Type | Name | Description |
---|---|---|
Product |
description | The description of the item being created. |
Fields
udpItemSyncing
Declaration
[Obsolete("API to be removed with UDP deprecation.")]
public bool udpItemSyncing
Field Value
Type | Description |
---|---|
bool |
udpSyncErrorMsg
Declaration
[Obsolete("API to be removed with UDP deprecation.")]
public string udpSyncErrorMsg
Field Value
Type | Description |
---|---|
string |
Properties
Item
Property which gets the ProductCatalogItem
instance being edited.
Declaration
public ProductCatalogItem Item { get; }
Property Value
Type | Description |
---|---|
Product |
Methods
OnGUI()
Function called when the GUI updates.
Declaration
public void OnGUI()
SetIDDuplicateError(bool)
Sets an error flag if the item's ID is a duplicate of another item's.
Declaration
public void SetIDDuplicateError(bool isDuplicate)
Parameters
Type | Name | Description |
---|---|---|
bool | isDuplicate | Whether or not the ID is a duplicate of another item. |
SetIDInvalidError(bool)
Sets an error flag if the item's ID is valid or not.
Declaration
public void SetIDInvalidError(bool isValid)
Parameters
Type | Name | Description |
---|---|---|
bool | isValid | Whether or not the ID is valid. |
SetShouldBeMarked(bool)
Sets a flag if the item should be marked.
Declaration
public void SetShouldBeMarked(bool marked)
Parameters
Type | Name | Description |
---|---|---|
bool | marked | Whether or not the item should be marked. |
SetValidationResults(ExporterValidationResults)
Sets the validation results upon export of this item.
Declaration
public void SetValidationResults(ProductCatalogEditor.ExporterValidationResults results)
Parameters
Type | Name | Description |
---|---|---|
Product |
results | The validation results of the export. |