docs.unity3d.com
    Show / Hide Table of Contents

    Class FeatureButton

    Class FeatureButton.

    Inheritance
    Object
    UIBehaviour
    Selectable
    Toggle
    FeatureButton
    Inherited Members
    Toggle.toggleTransition
    Toggle.graphic
    Toggle.onValueChanged
    UnityEngine.UI.Toggle.OnValidate()
    Toggle.Rebuild(CanvasUpdate)
    Toggle.LayoutComplete()
    Toggle.GraphicUpdateComplete()
    Toggle.OnEnable()
    Toggle.OnDisable()
    Toggle.OnDidApplyAnimationProperties()
    Toggle.SetIsOnWithoutNotify(Boolean)
    Toggle.Start()
    Toggle.OnSubmit(BaseEventData)
    UnityEngine.UI.Toggle.UnityEngine.UI.ICanvasElement.get_transform()
    Toggle.group
    Toggle.isOn
    Selectable.s_Selectables
    Selectable.s_SelectableCount
    Selectable.m_CurrentIndex
    Selectable.AllSelectablesNoAlloc(Selectable[])
    Selectable.Awake()
    Selectable.OnCanvasGroupChanged()
    Selectable.IsInteractable()
    Selectable.OnTransformParentChanged()
    UnityEngine.UI.Selectable.Reset()
    Selectable.InstantClearState()
    Selectable.DoStateTransition(Selectable.SelectionState, Boolean)
    Selectable.FindSelectable(Vector3)
    Selectable.FindSelectableOnLeft()
    Selectable.FindSelectableOnRight()
    Selectable.FindSelectableOnUp()
    Selectable.FindSelectableOnDown()
    Selectable.OnMove(AxisEventData)
    Selectable.IsHighlighted()
    Selectable.IsPressed()
    Selectable.OnPointerDown(PointerEventData)
    Selectable.OnPointerUp(PointerEventData)
    Selectable.OnPointerEnter(PointerEventData)
    Selectable.OnPointerExit(PointerEventData)
    Selectable.OnSelect(BaseEventData)
    Selectable.OnDeselect(BaseEventData)
    Selectable.Select()
    Selectable.allSelectablesArray
    Selectable.allSelectableCount
    Selectable.allSelectables
    Selectable.navigation
    Selectable.transition
    Selectable.colors
    Selectable.spriteState
    Selectable.animationTriggers
    Selectable.targetGraphic
    Selectable.interactable
    Selectable.image
    UnityEngine.UI.Selectable.animator
    Selectable.currentSelectionState
    UIBehaviour.IsActive()
    UIBehaviour.OnRectTransformDimensionsChange()
    UIBehaviour.OnBeforeTransformParentChanged()
    UIBehaviour.OnCanvasHierarchyChanged()
    UIBehaviour.IsDestroyed()
    Namespace: UnityEngine.Industrial.Configuring.RuntimeUI
    Syntax
    public class FeatureButton : Toggle, IMoveHandler, IPointerDownHandler, IPointerUpHandler, IPointerEnterHandler, IPointerExitHandler, ISelectHandler, IDeselectHandler, IPointerClickHandler, ISubmitHandler, IEventSystemHandler, ICanvasElement, IFeatureButton

    Properties

    Icon

    Gets the icon.

    Declaration
    public Texture2D Icon { get; }
    Property Value
    Type Description
    Texture2D

    The icon.

    Implements
    IFeatureButton.Icon

    Label

    Gets the label.

    Declaration
    public string Label { get; }
    Property Value
    Type Description
    String

    The label.

    Implements
    IFeatureButton.Label

    Methods

    OnDestroy()

    Called when [destroy].

    Declaration
    protected override void OnDestroy()
    Overrides
    Toggle.OnDestroy()

    OnPointerClick(PointerEventData)

    Called when [pointer click].

    Declaration
    public override void OnPointerClick(PointerEventData eventData)
    Parameters
    Type Name Description
    PointerEventData eventData

    The event data.

    Overrides
    Toggle.OnPointerClick(PointerEventData)

    SetAvailability(FeatureAvailability)

    Sets the availability.

    Declaration
    public void SetAvailability(FeatureAvailability featureAvailability)
    Parameters
    Type Name Description
    FeatureAvailability featureAvailability

    The feature availability.

    Implements
    IFeatureButton.SetAvailability(FeatureAvailability)

    SetDisplayInfo(DisplayInfoContent)

    Sets the display information.

    Declaration
    public void SetDisplayInfo(DisplayInfoContent info)
    Parameters
    Type Name Description
    DisplayInfoContent info

    The information.

    Implements
    IFeatureButton.SetDisplayInfo(DisplayInfoContent)

    SetIcon(Texture2D)

    Sets the icon.

    Declaration
    public void SetIcon(Texture2D icon)
    Parameters
    Type Name Description
    Texture2D icon

    The icon.

    Implements
    IFeatureButton.SetIcon(Texture2D)

    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
    IFeatureButton.SetLabel(String)

    SetSelected(Boolean)

    Sets the selected.

    Declaration
    public void SetSelected(bool on)
    Parameters
    Type Name Description
    Boolean on

    if set to true [on].

    Implements
    IFeatureButton.SetSelected(Boolean)

    Events

    clicked

    Occurs when [clicked].

    Declaration
    public event Action<bool> clicked
    Event Type
    Type Description
    Action<Boolean>
    Implements
    IFeatureButton.clicked

    selected

    Occurs when [selected].

    Declaration
    public event Action selected
    Event Type
    Type Description
    Action
    Implements
    IFeatureButton.selected
    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