docs.unity3d.com
    Show / Hide Table of Contents

    Class ProductContextOptionField

    Class ProductContextOptionField.

    Inheritance
    Object
    ProductContextOptionField
    Namespace: Unity.Industrial.Forma.RuntimeUI
    Syntax
    public class ProductContextOptionField : MonoBehaviour, IContextOptionField

    Properties

    Key

    Gets or sets the key.

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

    The key.

    Implements
    IContextOptionField.Key

    SelectedOption

    Gets or sets the selected option.

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

    The selected option.

    Implements
    IContextOptionField.SelectedOption

    Transform

    Gets the transform.

    Declaration
    public Transform Transform { get; }
    Property Value
    Type Description
    Transform

    The transform.

    Implements
    IContextOptionField.Transform

    Methods

    SetCategory(String)

    Sets the category.

    Declaration
    public void SetCategory(string category)
    Parameters
    Type Name Description
    String category

    The category.

    Implements
    IContextOptionField.SetCategory(String)

    SetDisplayInfo(DisplayInfoContent)

    Sets the display information.

    Declaration
    public void SetDisplayInfo(DisplayInfoContent info)
    Parameters
    Type Name Description
    DisplayInfoContent info

    The information.

    Implements
    IContextOptionField.SetDisplayInfo(DisplayInfoContent)

    SetDropdownValues(List<String>)

    Sets the dropdown values.

    Declaration
    public void SetDropdownValues(List<string> options)
    Parameters
    Type Name Description
    List<String> options

    The options.

    Implements
    IContextOptionField.SetDropdownValues(List<String>)

    SetOptions(List<String>)

    Sets the options.

    Declaration
    public void SetOptions(List<string> options)
    Parameters
    Type Name Description
    List<String> options

    The options.

    Implements
    IContextOptionField.SetOptions(List<String>)

    Events

    productContextOptionChanged

    Occurs when [product context option changed].

    Declaration
    public event ProductContextChangeHandler productContextOptionChanged
    Event Type
    Type Description
    ProductContextChangeHandler
    Implements
    IContextOptionField.productContextOptionChanged
    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