docs.unity3d.com
    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.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023