Class ProductCatalogEditor.ProductCatalogItemEditor
Inner class for displaying and editing the contents of a single entry in the ProductCatalog.
Inherited Members
Namespace: UnityEditor.Purchasing
Syntax
public class 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 |
---|---|---|
ProductCatalogItem | description | The description of the item being created. |
Fields
udpItemSyncing
Whether or not this item is syncing a UDP item.
Declaration
public bool udpItemSyncing
Field Value
Type | Description |
---|---|
Boolean |
udpSyncErrorMsg
The Error message of the UDP sync, if applicable.
Declaration
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 |
---|---|
ProductCatalogItem |
Methods
OnGUI()
Function called when the GUI updates.
Declaration
public void OnGUI()
SetIDDuplicateError(Boolean)
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 |
---|---|---|
Boolean | isDuplicate | Whether or not the ID is a duplicate of another item. |
SetIDInvalidError(Boolean)
Sets an error flag if the item's ID is valid or not.
Declaration
public void SetIDInvalidError(bool isValid)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isValid | Whether or not the ID is valid. |
SetShouldBeMarked(Boolean)
Sets a flag if the item should be marked.
Declaration
public void SetShouldBeMarked(bool marked)
Parameters
Type | Name | Description |
---|---|---|
Boolean | marked | Whether or not the item should be marked. |
SetValidationResults(ProductCatalogEditor.ExporterValidationResults)
Sets the validation results upon export of this item.
Declaration
public void SetValidationResults(ProductCatalogEditor.ExporterValidationResults results)
Parameters
Type | Name | Description |
---|---|---|
ProductCatalogEditor.ExporterValidationResults | results | The validation results of the export. |