logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityUiSelectorComponentActions

    Unity UI selector component actions that handle option selection and value change events.
    Extends submit component actions to provide comprehensive selector interaction capabilities including value changes and selectable values updates.
    Implements IUiSelectableActions interface for complete option selection functionality within the UI system.

    Inheritance
    object
    UnityUiSubmitComponentActions
    UnityUiSelectorComponentActions
    UnityUiDropdownComponentActions
    Implements
    IUiSubmittableActions
    IUiSelectableActions
    IUiInteractableActions
    IUiComponentActions
    IComponentActions
    Inherited Members
    UnityUiSubmitComponentActions._onSubmit
    UnityUiSubmitComponentActions.OnSubmit
    Namespace: Serenity.Ui.Infrastructure.Components
    Assembly: Serenity.UnityUi.Infrastructure.dll
    Syntax
    public class UnityUiSelectorComponentActions : UnityUiSubmitComponentActions, IUiSubmittableActions, IUiSelectableActions, IUiInteractableActions, IUiComponentActions, IComponentActions

    Constructors

    UnityUiSelectorComponentActions(Action<IUiComponent, int>, Action<IUiComponent, ConfigurationEntry[]>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent, string>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>)

    Initializes selector component actions with comprehensive callback configuration.
    Sets up all available action callbacks including selector-specific and inherited submit/interactable behaviors.
    Provides complete event handling for option selection interactions within the UI system.

    Declaration
    public UnityUiSelectorComponentActions(Action<IUiComponent, int> onValueChange = null, Action<IUiComponent, ConfigurationEntry[]> onSelectableValuesChange = null, Action<IUiComponent> awake = null, Action<IUiComponent> onEnable = null, Action<IUiComponent> update = null, Action<IUiComponent> onDisable = null, Action<IUiComponent> onDestroy = null, Action<IUiComponent> onDraggingStart = null, Action<IUiComponent> onDraggingEnd = null, Action<IUiComponent> onFocus = null, Action<IUiComponent> onBlur = null, Action<IUiComponent, string> selectComponentById = null, Action<IUiComponent> selectNextComponent = null, Action<IUiComponent> selectPreviousComponent = null, Action<IUiComponent> onSubmit = null)
    Parameters
    Type Name Description
    Action<IUiComponent, int> onValueChange

    Callback for selected value index change events

    Action<IUiComponent, ConfigurationEntry[]> onSelectableValuesChange

    Callback for selectable values array change events

    Action<IUiComponent> awake

    Callback for component awakening

    Action<IUiComponent> onEnable

    Callback for component enabling

    Action<IUiComponent> update

    Callback for component updates

    Action<IUiComponent> onDisable

    Callback for component disabling

    Action<IUiComponent> onDestroy

    Callback for component destruction

    Action<IUiComponent> onDraggingStart

    Callback for drag operation start

    Action<IUiComponent> onDraggingEnd

    Callback for drag operation end

    Action<IUiComponent> onFocus

    Callback for component focus gain

    Action<IUiComponent> onBlur

    Callback for component focus loss

    Action<IUiComponent, string> selectComponentById

    Callback for component selection by ID

    Action<IUiComponent> selectNextComponent

    Callback for next component selection

    Action<IUiComponent> selectPreviousComponent

    Callback for previous component selection

    Action<IUiComponent> onSubmit

    Callback for selector submission events

    Fields

    _onSelectableValuesChange

    Declaration
    protected Action<IUiComponent, ConfigurationEntry[]> _onSelectableValuesChange
    Field Value
    Type Description
    Action<IUiComponent, ConfigurationEntry[]>

    Action callback triggered when the selectable values array is updated.
    Executed when the component's available options are modified, providing the component and new values array.

    _onValueChange

    Declaration
    protected Action<IUiComponent, int> _onValueChange
    Field Value
    Type Description
    Action<IUiComponent, int>

    Action callback triggered when the selector component's selected value changes.
    Executed when the user selects a different option, providing the component and new index.

    Properties

    OnSelectableValuesChange

    Gets or sets the selectable values change callback action.
    Invoked when the array of available options is modified in the selector component.

    Declaration
    public Action<IUiComponent, ConfigurationEntry[]> OnSelectableValuesChange { get; set; }
    Property Value
    Type Description
    Action<IUiComponent, ConfigurationEntry[]>

    The selectable values change callback action

    OnValueChange

    Gets or sets the value change callback action.
    Invoked whenever the selected option index changes in the selector component.

    Declaration
    public Action<IUiComponent, int> OnValueChange { get; set; }
    Property Value
    Type Description
    Action<IUiComponent, int>

    The value change callback action

    Implements

    IUiSubmittableActions
    IUiSelectableActions
    IUiInteractableActions
    IUiComponentActions
    IComponentActions
    In this article
    © 2026 Serenity. All Rights Reserved