docs.unity3d.com
    Show / Hide Table of Contents

    Class ProductDefinition

    Class ProductDefinition.

    Inheritance
    Object
    ProductDefinition
    Namespace: Unity.Industrial.Forma.Core.Products
    Syntax
    public class ProductDefinition : ScriptableObject

    Fields

    label

    The label

    Declaration
    public string label
    Field Value
    Type Description
    String

    profiles

    The profiles

    Declaration
    public List<ProductVariantProfile> profiles
    Field Value
    Type Description
    List<ProductVariantProfile>

    Properties

    DefaultThumbnail

    Gets the default thumbnail.

    Declaration
    public Texture2D DefaultThumbnail { get; }
    Property Value
    Type Description
    Texture2D

    The default thumbnail.

    LabelOrDefault

    Gets the label or default.

    Declaration
    public string LabelOrDefault { get; }
    Property Value
    Type Description
    String

    The label or default.

    Methods

    GetProductReference(Product)

    Gets the product reference.

    Declaration
    public ProductProfileReference GetProductReference(Product product)
    Parameters
    Type Name Description
    Product product

    The product.

    Returns
    Type Description
    ProductProfileReference

    ProductProfileReference.

    GetProductReference(ProductVariantProfile)

    Gets the product reference.

    Declaration
    public ProductProfileReference GetProductReference(ProductVariantProfile profile)
    Parameters
    Type Name Description
    ProductVariantProfile profile

    The profile.

    Returns
    Type Description
    ProductProfileReference

    ProductProfileReference.

    GetProfileForProduct(Product)

    Gets the profile for product.

    Declaration
    public ProductVariantProfile GetProfileForProduct(Product product)
    Parameters
    Type Name Description
    Product product

    The product.

    Returns
    Type Description
    ProductVariantProfile

    ProductVariantProfile.

    Events

    anyProductDefinitionChanged

    Occurs when [any product definition changed].

    Declaration
    public static event Action<ProductDefintionChangeArgs> anyProductDefinitionChanged
    Event Type
    Type Description
    Action<ProductDefintionChangeArgs>
    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