Class ProductSetupPanel
Class ProductSetupPanel.
Inherited Members
Namespace: Unity.Industrial.Forma.RuntimeUI
Syntax
[MovedFrom(true, "UnityEngine.Industrial.Configuring.RuntimeUI", "Unity.Industrial.Configurator", null)]
public class ProductSetupPanel : MonoBehaviour, IProductSetupPanel
Properties
ContextOptionFields
Gets the context option fields.
Declaration
public Dictionary<string, IContextOptionField> ContextOptionFields { get; }
Property Value
| Type | Description |
|---|---|
| Dictionary<String, IContextOptionField> | The context option fields. |
Implements
IsProductDropdownInteractable
Gets or sets a value indicating whether this instance is product dropdown interactable.
Declaration
public bool IsProductDropdownInteractable { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
Implements
Transform
Gets the transform.
Declaration
public Transform Transform { get; }
Property Value
| Type | Description |
|---|---|
| Transform | The transform. |
Implements
Methods
AddContextOptionField(IContextOptionField)
Adds the context option field.
Declaration
public void AddContextOptionField(IContextOptionField productOption)
Parameters
| Type | Name | Description |
|---|---|---|
| IContextOptionField | productOption | The product option. |
Implements
ClearOptionFields()
Clears the option fields.
Declaration
public void ClearOptionFields()
Implements
Destroy()
Destroys this instance.
Declaration
public void Destroy()
Implements
IsDestroyed()
Get whether or not this instance has been destroyed.
Declaration
public bool IsDestroyed()
Returns
| Type | Description |
|---|---|
| Boolean |
|
Implements
RemoveContextOptionField(String)
Removes the context option field.
Declaration
public void RemoveContextOptionField(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| String | key | The key. |
Implements
Exceptions
| Type | Condition |
|---|---|
| KeyNotFoundException | Given key {key} can't be found |
SetCurrentProduct(Int32)
Sets the current product.
Declaration
public void SetCurrentProduct(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index | The index. |
Implements
SetProductSelected(String)
Sets the product selected.
Declaration
public void SetProductSelected(string selectedProduct)
Parameters
| Type | Name | Description |
|---|---|---|
| String | selectedProduct | The selected product. |
SetProductsView(List<String>)
Sets the products view.
Declaration
public void SetProductsView(List<string> products)
Parameters
| Type | Name | Description |
|---|---|---|
| List<String> | products | The products. |
Implements
SetVisibility(Boolean)
Sets the visibility of the setup panel.
Declaration
public void SetVisibility(bool visible)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | visible | True if the panel should be visible. False otherwise. |
Implements
Events
productSelected
Occurs when [product selected].
Declaration
public event Action<int, string> productSelected
Event Type
| Type | Description |
|---|---|
| Action<Int32, String> |