docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ProductCatalogEditor.IProductCatalogExporter

    Product catalog exporters implement this interface to provide validation and export of a ProductCatalog.

    Namespace: UnityEditor.Purchasing
    Assembly: UnityEditor.Purchasing.dll
    Syntax
    public interface ProductCatalogEditor.IProductCatalogExporter

    Properties

    DefaultFileName

    The default file name of the catalog export.

    Declaration
    string DefaultFileName { get; }
    Property Value
    Type Description
    string

    DisplayName

    The display name of the catalog.

    Declaration
    string DisplayName { get; }
    Property Value
    Type Description
    string

    FileExtension

    The file extension of the catalog export.

    Declaration
    string FileExtension { get; }
    Property Value
    Type Description
    string

    FilesToCopy

    Files to copy to the final directory, ex. screenshots on iOS

    Declaration
    List<string> FilesToCopy { get; }
    Property Value
    Type Description
    List<string>

    MandatoryExportFolder

    Required specific path for output file. Is optional whether user will be permitted to save a copy to a separate path in addition to this required path.

    Declaration
    string MandatoryExportFolder { get; }
    Property Value
    Type Description
    string

    SaveCompletePackage

    True if the exporter should save an entire package/folder (specified by MandatoryExportFolder and FilesToCopy, not just a single file. This will present a Directory picker, not a File picker. The DefaultFileName will be used for the main file in the MandatoryExportFolder, and any FilesToCopy will be placed in that folder as well.

    Declaration
    bool SaveCompletePackage { get; }
    Property Value
    Type Description
    bool

    StoreName

    The name of the store to be exported.

    Declaration
    string StoreName { get; }
    Property Value
    Type Description
    string

    Methods

    Export(ProductCatalog)

    Exports the product catalog.

    Declaration
    string Export(ProductCatalog catalog)
    Parameters
    Type Name Description
    ProductCatalog catalog

    The ProductCatalog to be exported.

    Returns
    Type Description
    string

    The exported catalog as raw text.

    NormalizeToType(ProductCatalog)

    Normalizes the product catalog for export to the base type. Fixes issues targeting this exporter's implempentation.

    Declaration
    ProductCatalog NormalizeToType(ProductCatalog catalog)
    Parameters
    Type Name Description
    ProductCatalog catalog

    The ProductCatalog to be normalized.

    Returns
    Type Description
    ProductCatalog

    The normalized ProductCatalog.

    Validate(ProductCatalog)

    Validates the product catalog for export.

    Declaration
    ProductCatalogEditor.ExporterValidationResults Validate(ProductCatalog catalog)
    Parameters
    Type Name Description
    ProductCatalog catalog

    The ProductCatalog to be exported.

    Returns
    Type Description
    ProductCatalogEditor.ExporterValidationResults

    The results of the validation.

    Validate(ProductCatalogItem)

    Validates the product catalog item for export.

    Declaration
    ProductCatalogEditor.ExporterValidationResults Validate(ProductCatalogItem item)
    Parameters
    Type Name Description
    ProductCatalogItem item

    The ProductCataloItemg to be exported.

    Returns
    Type Description
    ProductCatalogEditor.ExporterValidationResults

    The results of the validation.

    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)