Class FeatureButton
Class FeatureButton.
Namespace: Unity.Industrial.Forma.RuntimeUI
Syntax
public class FeatureButton : Toggle, IFeatureButton
Properties
Icon
Gets the icon.
Declaration
public Texture2D Icon { get; }
Property Value
Type | Description |
---|---|
Texture2D | The icon. |
Implements
Label
Gets the label.
Declaration
public string Label { get; }
Property Value
Type | Description |
---|---|
String | The label. |
Implements
Methods
OnDestroy()
Called when [destroy].
Declaration
protected override void OnDestroy()
OnPointerClick(PointerEventData)
Called when [pointer click].
Declaration
public override void OnPointerClick(PointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
PointerEventData | eventData | The event data. |
SetAvailability(FeatureAvailability)
Sets the availability.
Declaration
public void SetAvailability(FeatureAvailability featureAvailability)
Parameters
Type | Name | Description |
---|---|---|
FeatureAvailability | featureAvailability | The feature availability. |
Implements
SetDisplayInfo(DisplayInfoContent)
Sets the display information.
Declaration
public void SetDisplayInfo(DisplayInfoContent info)
Parameters
Type | Name | Description |
---|---|---|
DisplayInfoContent | info | The information. |
Implements
SetIcon(Texture2D)
Sets the icon.
Declaration
public void SetIcon(Texture2D icon)
Parameters
Type | Name | Description |
---|---|---|
Texture2D | icon | The icon. |
Implements
SetKnobVisual()
Sets the knob visual.
Declaration
public void SetKnobVisual()
SetLabel(String)
Sets the label.
Declaration
public void SetLabel(string label)
Parameters
Type | Name | Description |
---|---|---|
String | label | The label. |
Implements
SetSelected(Boolean)
Sets the selected.
Declaration
public void SetSelected(bool on)
Parameters
Type | Name | Description |
---|---|---|
Boolean | on | if set to |
Implements
Events
clicked
Occurs when [clicked].
Declaration
public event Action<bool> clicked
Event Type
Type | Description |
---|---|
Action<Boolean> |
Implements
selected
Occurs when [selected].
Declaration
public event Action selected
Event Type
Type | Description |
---|---|
Action |
selectedChanged
Occurs when "selected" as in the checkbox state has changed.
Declaration
public event Action<bool> selectedChanged
Event Type
Type | Description |
---|---|
Action<Boolean> |