Class UnityUiInputComponentActions
Unity UI input component actions that handle text editing, submission, and cancellation events.
Extends interactable component actions to provide comprehensive input field interaction capabilities.
Implements IUiEditableActions, IUiSubmittableActions, and IUiCancellableActions for complete input functionality.
Implements
Namespace: Serenity.Ui.Infrastructure.Components
Assembly: Serenity.UnityUi.Infrastructure.dll
Syntax
public class UnityUiInputComponentActions : UiInteractableComponentActions, IUiEditableActions, IComponentActions, IUiSubmittableActions, IUiInteractableActions, IUiComponentActions, IUiCancellableActions
Constructors
UnityUiInputComponentActions(Action<IUiComponent, string>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, 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 input component actions with comprehensive callback configuration.
Sets up all available action callbacks including input-specific and inherited interactable behaviors.
Provides complete event handling for text input interactions within the UI system.
Declaration
public UnityUiInputComponentActions(Action<IUiComponent, string> onEdit = null, Action<IUiComponent> onStartEdition = null, Action<IUiComponent> onEndEdition = null, Action<IUiComponent> onSubmit = null, Action<IUiComponent> onCancel = 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, string> | onEdit | Callback for text value change events |
| Action<IUiComponent> | onStartEdition | Callback for editing start events |
| Action<IUiComponent> | onEndEdition | Callback for editing end events |
| Action<IUiComponent> | onSubmit | Callback for input submission events |
| Action<IUiComponent> | onCancel | Callback for input cancellation 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
_onCancel
Declaration
protected Action<IUiComponent> _onCancel
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The cancel callback action |
_onEdit
Declaration
protected Action<IUiComponent, string> _onEdit
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent, string> | The text edit callback action |
_onEndEdition
Declaration
protected Action<IUiComponent> _onEndEdition
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The editing end callback action |
_onStartEdition
Declaration
protected Action<IUiComponent> _onStartEdition
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The editing start callback action |
_onSubmit
Declaration
protected Action<IUiComponent> _onSubmit
Field Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The submit callback action |
Properties
OnCancel
Gets or sets the cancel callback action.
Invoked when input field editing is cancelled or reverted.
Declaration
public Action<IUiComponent> OnCancel { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The cancel callback action |
OnEdit
Gets or sets the text edit callback action.
Invoked when the input field text value changes during editing.
Declaration
public Action<IUiComponent, string> OnEdit { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent, string> | The text edit callback action |
OnEndEdition
Gets or sets the editing end callback action.
Invoked when the input field exits editing mode.
Declaration
public Action<IUiComponent> OnEndEdition { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The editing end callback action |
OnStartEdition
Gets or sets the editing start callback action.
Invoked when the input field enters editing mode.
Declaration
public Action<IUiComponent> OnStartEdition { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The editing start callback action |
OnSubmit
Gets or sets the submit callback action.
Invoked when the input field is submitted with confirmed text.
Declaration
public Action<IUiComponent> OnSubmit { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IUiComponent> | The submit callback action |