logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityUiSliderComponentActions

    Unity UI slider component actions that handle range value changes and bound modifications.
    Extends interactable component actions to provide comprehensive slider interaction capabilities including value changes, minimum/maximum value updates.
    Implements IUiSlideableActions interface for complete range control functionality within the UI system.

    Inheritance
    object
    UnityUiSliderComponentActions
    Implements
    IUiSlideableActions
    IUiInteractableActions
    IUiComponentActions
    IComponentActions
    Namespace: Serenity.Ui.Infrastructure.Components
    Assembly: Serenity.UnityUi.Infrastructure.dll
    Syntax
    public class UnityUiSliderComponentActions : UiInteractableComponentActions, IUiSlideableActions, IUiInteractableActions, IUiComponentActions, IComponentActions

    Constructors

    UnityUiSliderComponentActions(Action<IUiComponent, float>, Action<IUiComponent, float>, Action<IUiComponent, float>, 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>)

    Initializes slider component actions with comprehensive callback configuration.
    Sets up all available action callbacks including slider-specific and inherited interactable behaviors.
    Provides complete event handling for range control interactions within the UI system.

    Declaration
    public UnityUiSliderComponentActions(Action<IUiComponent, float> onValueChange = null, Action<IUiComponent, float> onMinimumValueChange = null, Action<IUiComponent, float> onMaximumValueChange = 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)
    Parameters
    Type Name Description
    Action<IUiComponent, float> onValueChange

    Callback for slider value change events

    Action<IUiComponent, float> onMinimumValueChange

    Callback for minimum value bound change events

    Action<IUiComponent, float> onMaximumValueChange

    Callback for maximum value bound 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

    Fields

    _onMaximumValueChange

    Declaration
    protected Action<IUiComponent, float> _onMaximumValueChange
    Field Value
    Type Description
    Action<IUiComponent, float>

    Action callback triggered when the slider's maximum value bound is modified.
    Executed when the slider's range maximum is programmatically changed, providing the component and new maximum value.

    _onMinimumValueChange

    Declaration
    protected Action<IUiComponent, float> _onMinimumValueChange
    Field Value
    Type Description
    Action<IUiComponent, float>

    Action callback triggered when the slider's minimum value bound is modified.
    Executed when the slider's range minimum is programmatically changed, providing the component and new minimum value.

    _onValueChange

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

    Action callback triggered when the slider component's value changes.
    Executed when the user adjusts the slider, providing the component and new value.

    Properties

    OnMaximumValueChange

    Gets or sets the maximum value change callback action.
    Invoked when the slider's maximum bound is modified programmatically.

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

    The maximum value change callback action

    OnMinimumValueChange

    Gets or sets the minimum value change callback action.
    Invoked when the slider's minimum bound is modified programmatically.

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

    The minimum value change callback action

    OnValueChange

    Gets or sets the value change callback action.
    Invoked whenever the slider value changes within its defined range.

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

    The value change callback action

    Implements

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