logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityUiSubmitComponentActions

    Unity UI submit component actions that handle submission events and button interactions.
    Extends interactable component actions to provide submit-specific callback functionality.
    Implements IUiSubmittableActions interface for comprehensive submission event handling within the UI system.

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

    Constructors

    UnityUiSubmitComponentActions(Action<IUiComponent>, 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 submit component actions with comprehensive callback configuration.
    Sets up all available action callbacks including submit-specific and inherited interactable behaviors.
    Provides complete event handling for button submission interactions within the UI system.

    Declaration
    public UnityUiSubmitComponentActions(Action<IUiComponent> onSubmit = 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> onSubmit

    Callback for button submission 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

    _onSubmit

    Declaration
    protected Action<IUiComponent> _onSubmit
    Field Value
    Type Description
    Action<IUiComponent>

    Action callback triggered when the submit component is activated.
    Executed when the user submits the button through click, keyboard, or other input methods.

    Properties

    OnSubmit

    Gets or sets the submit callback action.
    Invoked when the submit component receives a submit input event or button activation.

    Declaration
    public Action<IUiComponent> OnSubmit { get; set; }
    Property Value
    Type Description
    Action<IUiComponent>

    The submit callback action

    Implements

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