docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ProductCatalogPersistModel

    Describe some fields to save product catalog as file.

    Inheritance
    object
    ProductCatalogPersistModel
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: UnityEngine.UDP
    Assembly: UDP.dll
    Syntax
    public class ProductCatalogPersistModel

    Constructors

    ProductCatalogPersistModel()

    Declaration
    public ProductCatalogPersistModel()

    Fields

    products

    Product catalog.

    Declaration
    public List<ProductInfo> products
    Field Value
    Type Description
    List<ProductInfo>

    udpVersion

    Current udp sdk version.

    Declaration
    public string udpVersion
    Field Value
    Type Description
    string

    Methods

    Deserialize(string)

    Deserialize, string to object.

    Declaration
    public static ProductCatalogPersistModel Deserialize(string catalogJson)
    Parameters
    Type Name Description
    string catalogJson
    Returns
    Type Description
    ProductCatalogPersistModel

    FromTextAsset(TextAsset)

    Deserialize from text asset.

    Declaration
    public static ProductCatalogPersistModel FromTextAsset(TextAsset asset)
    Parameters
    Type Name Description
    TextAsset asset
    Returns
    Type Description
    ProductCatalogPersistModel

    Serialize(ProductCatalogPersistModel)

    Serialize method. object to string.

    Declaration
    public static string Serialize(ProductCatalogPersistModel catalog)
    Parameters
    Type Name Description
    ProductCatalogPersistModel catalog
    Returns
    Type Description
    string
    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)