docs.unity3d.com
    Show / Hide Table of Contents

    Interface IFeatureButton

    Interface IFeatureButton

    Namespace: UnityEngine.Industrial.Configuring.RuntimeUI
    Syntax
    public interface IFeatureButton

    Properties

    Icon

    Gets the icon.

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

    The icon.

    Label

    Gets the label.

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

    The label.

    Methods

    SetAvailability(FeatureAvailability)

    Sets the availability.

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

    The feature availability.

    SetDisplayInfo(DisplayInfoContent)

    Sets the display information.

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

    The information.

    SetIcon(Texture2D)

    Sets the icon.

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

    The icon.

    SetLabel(String)

    Sets the label.

    Declaration
    void SetLabel(string label)
    Parameters
    Type Name Description
    String label

    The label.

    SetSelected(Boolean)

    Sets the selected.

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

    if set to true [on].

    Events

    clicked

    Occurs when [clicked].

    Declaration
    event Action<bool> clicked
    Event Type
    Type Description
    Action<Boolean>

    selected

    Occurs when [selected].

    Declaration
    [Obsolete("Please use selectedChanged event instead.")]
    event Action selected
    Event Type
    Type Description
    Action

    selectedChanged

    Occurs when "selected" as in the checkbox state has changed.

    Declaration
    event Action<bool> selectedChanged
    Event Type
    Type Description
    Action<Boolean>
    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