Class MenuButton
Class MenuButton.
Namespace: Unity.Industrial.Forma.RuntimeUI.Components
Syntax
public class MenuButton : Selectable, IPointerClickHandler
Fields
onStatusChange
The on status change
Declaration
public StatusChangedEvent onStatusChange
Field Value
Type | Description |
---|---|
StatusChangedEvent |
Properties
IsOn
Gets a value indicating whether this instance is on.
Declaration
public bool IsOn { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Methods
OnPointerClick(PointerEventData)
Called when [pointer click].
Declaration
public void OnPointerClick(PointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
PointerEventData | eventData | The event data. |
Start()
Starts this instance.
Declaration
protected override void Start()
ToggleView(Boolean)
Toggles the view.
Declaration
public void ToggleView(bool open)
Parameters
Type | Name | Description |
---|---|---|
Boolean | open | if set to |