docs.unity3d.com
    Show / Hide Table of Contents

    Class ProductUGUIRuntime

    UGUI runtime UI generator for Products

    Inheritance
    Object
    ProductRuntimeUI
    ProductUGUIRuntime
    Inherited Members
    ProductRuntimeUI.currentProductValueChange
    ProductRuntimeUI.featureValueChange
    ProductRuntimeUI.contextValueChange
    ProductRuntimeUI.uiStatusChange
    ProductRuntimeUI.stagingOptionChange
    ProductRuntimeUI.currentProduct
    ProductRuntimeUI.currentContext
    ProductRuntimeUI.infoEngine
    ProductRuntimeUI.resourceProvider
    ProductRuntimeUI.productCanvas
    ProductRuntimeUI.infoPanel
    ProductRuntimeUI.setupPanel
    ProductRuntimeUI.stagingPanel
    ProductRuntimeUI.featureSetDropdowns
    ProductRuntimeUI.featureButtons
    ProductRuntimeUI.featureSetsInformation
    ProductRuntimeUI.featuresInformation
    ProductRuntimeUI.canvasInformation
    ProductRuntimeUI.infoInformation
    ProductRuntimeUI.setupInformation
    ProductRuntimeUI.stagingInformation
    ProductRuntimeUI.CreateRuntimeUI(Product, UIStatus)
    ProductRuntimeUI.BuildFeaturesElements()
    ProductRuntimeUI.CreateFeatureSets(IReadOnlyDictionary<FeatureSet, FeatureAvailability>)
    ProductRuntimeUI.ClearFeatureDropdownList()
    ProductRuntimeUI.SetActive(Boolean)
    ProductRuntimeUI.UpdateFeatureSetAvailabilities(Product, IReadOnlyDictionary<FeatureSet, FeatureAvailability>)
    ProductRuntimeUI.UpdateFeatureAvailabilities(IReadOnlyDictionary<Feature, FeatureAvailability>)
    ProductRuntimeUI.RaiseUICurrentProductChangeEvent(UICurrentProductChangeEventArgs)
    ProductRuntimeUI.RaiseFeatureOptionChangeEvent(UIFeatureOptionChangeEventArgs)
    ProductRuntimeUI.RaiseContextOptionChangeEvent(UIContextOptionChangeEventArgs)
    ProductRuntimeUI.RaiseUIStatusChangeEvent(UIStatusChangeEventArgs)
    ProductRuntimeUI.RaiseUIStagingOptionChangeEvent(UIStagingOptionChangeEventArgs)
    Namespace: UnityEngine.Industrial.Configuring.RuntimeUI
    Syntax
    public class ProductUGUIRuntime : ProductRuntimeUI

    Constructors

    ProductUGUIRuntime(IResourceProvider, IInfoEngine)

    Creates an instance of UGUI runtime product UI

    Declaration
    public ProductUGUIRuntime(IResourceProvider resourceProvider, IInfoEngine infoEngine)
    Parameters
    Type Name Description
    IResourceProvider resourceProvider

    Resource provider for the UI. You can use DefaultResourceProvider if you don't have one

    IInfoEngine infoEngine

    Info engine to populate UI elements

    Methods

    CreateContextOption(String)

    Creates the context option.

    Declaration
    protected override IContextOptionField CreateContextOption(string key)
    Parameters
    Type Name Description
    String key

    The key.

    Returns
    Type Description
    IContextOptionField

    IContextOptionField.

    Overrides
    ProductRuntimeUI.CreateContextOption(String)

    CreateFeatureButton(IFeatureSetDropdown, Feature)

    Creates the feature button.

    Declaration
    protected override IFeatureButton CreateFeatureButton(IFeatureSetDropdown featureSetDropdown, Feature feature)
    Parameters
    Type Name Description
    IFeatureSetDropdown featureSetDropdown

    The feature set dropdown.

    Feature feature

    The feature.

    Returns
    Type Description
    IFeatureButton

    IFeatureButton.

    Overrides
    ProductRuntimeUI.CreateFeatureButton(IFeatureSetDropdown, Feature)
    Exceptions
    Type Condition
    NullReferenceException

    Feature Button can't be null. Please create a prefab with FeatureButton script attached to it.

    CreateFeatureSetDropdown(FeatureSet, Action<IFeatureSetDropdown>)

    Creates the feature set dropdown.

    Declaration
    protected override void CreateFeatureSetDropdown(FeatureSet featureSet, Action<IFeatureSetDropdown> callback)
    Parameters
    Type Name Description
    FeatureSet featureSet

    The feature set.

    Action<IFeatureSetDropdown> callback

    The callback.

    Overrides
    ProductRuntimeUI.CreateFeatureSetDropdown(FeatureSet, Action<IFeatureSetDropdown>)

    CreateInfoPanel()

    Creates the information panel.

    Declaration
    protected override IProductInfoPanel CreateInfoPanel()
    Returns
    Type Description
    IProductInfoPanel

    IProductInfoPanel.

    Overrides
    ProductRuntimeUI.CreateInfoPanel()

    CreateProductCanvas()

    Creates the product canvas.

    Declaration
    protected override IProductCanvas CreateProductCanvas()
    Returns
    Type Description
    IProductCanvas

    IProductCanvas.

    Overrides
    ProductRuntimeUI.CreateProductCanvas()

    CreateSetupPanel()

    Creates the setup panel.

    Declaration
    protected override IProductSetupPanel CreateSetupPanel()
    Returns
    Type Description
    IProductSetupPanel

    IProductSetupPanel.

    Overrides
    ProductRuntimeUI.CreateSetupPanel()

    CreateStagingUI(RuntimeStagingSettings)

    Creates Staging UI if staging prefab is provided

    Declaration
    public override void CreateStagingUI(RuntimeStagingSettings runtimeStagingSettings)
    Parameters
    Type Name Description
    RuntimeStagingSettings runtimeStagingSettings

    The runtime staging settings.

    Overrides
    ProductRuntimeUI.CreateStagingUI(RuntimeStagingSettings)

    FocusFeatureSet(String, Boolean, Boolean)

    Focuses UI on the feature set dropdown and expands its view

    Declaration
    public override void FocusFeatureSet(string setname, bool on, bool closeOthers = false)
    Parameters
    Type Name Description
    String setname

    The setname.

    Boolean on

    if set to true [on].

    Boolean closeOthers

    if set to true [close others].

    Overrides
    ProductRuntimeUI.FocusFeatureSet(String, Boolean, Boolean)

    RemoveContextOption(String)

    Removes the context option.

    Declaration
    protected override void RemoveContextOption(string key)
    Parameters
    Type Name Description
    String key

    The key.

    Overrides
    ProductRuntimeUI.RemoveContextOption(String)

    RemoveFeatureButton(IFeatureSetDropdown, Feature)

    Removes the feature button.

    Declaration
    protected override void RemoveFeatureButton(IFeatureSetDropdown featureSetDropdown, Feature feature)
    Parameters
    Type Name Description
    IFeatureSetDropdown featureSetDropdown

    The feature set dropdown.

    Feature feature

    The feature.

    Overrides
    ProductRuntimeUI.RemoveFeatureButton(IFeatureSetDropdown, Feature)
    Exceptions
    Type Condition
    Exception

    Feature button: {feature.code}, does not exist!

    RemoveFeatureSetDropdown(FeatureSet)

    Removes the feature set dropdown.

    Declaration
    protected override void RemoveFeatureSetDropdown(FeatureSet featureSet)
    Parameters
    Type Name Description
    FeatureSet featureSet

    The feature set.

    Overrides
    ProductRuntimeUI.RemoveFeatureSetDropdown(FeatureSet)
    Exceptions
    Type Condition
    Exception

    Feature set dropdown: {featureSet.code}, does not exist!

    UpdateContextUI(Context)

    Updates context option selections

    Declaration
    public override void UpdateContextUI(Context context)
    Parameters
    Type Name Description
    Context context

    The context.

    Overrides
    ProductRuntimeUI.UpdateContextUI(Context)

    UpdatePricingInfo(PricingEngineReply)

    Updates the pricing information.

    Declaration
    public override void UpdatePricingInfo(PricingEngineReply pricing)
    Parameters
    Type Name Description
    PricingEngineReply pricing

    The pricing.

    Overrides
    ProductRuntimeUI.UpdatePricingInfo(PricingEngineReply)

    UpdateProductUI(Product)

    Updates the canvas with a given product

    Declaration
    public override void UpdateProductUI(Product product)
    Parameters
    Type Name Description
    Product product

    New Product to be displayed

    Overrides
    ProductRuntimeUI.UpdateProductUI(Product)

    UpdateStagingUI(StagingType, SwitchStagingElementArgs)

    Updates staging UI change

    Declaration
    public override void UpdateStagingUI(StagingType stagingChangeType, SwitchStagingElementArgs args)
    Parameters
    Type Name Description
    StagingType stagingChangeType

    Type of the staging change.

    SwitchStagingElementArgs args

    The arguments.

    Overrides
    ProductRuntimeUI.UpdateStagingUI(StagingType, SwitchStagingElementArgs)
    Back to top
    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