Class ProductSetupPanel
Class ProductSetupPanel.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Industrial.Configuring.RuntimeUI
Syntax
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
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
Events
productSelected
Occurs when [product selected].
Declaration
public event Action<int, string> productSelected
Event Type
| Type | Description |
|---|---|
| Action<Int32, String> |