docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ProductCatalogEditor.ProductCatalogItemEditor

    Inner class for displaying and editing the contents of a single entry in the ProductCatalog.

    Inheritance
    object
    ProductCatalogEditor.ProductCatalogItemEditor
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Purchasing
    Assembly: UnityEditor.Purchasing.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
    ProductCatalogItem description

    The description of the item being created.

    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(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
    ProductCatalogEditor.ExporterValidationResults results

    The validation results of the export.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)