logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityUiBackgroundComponentActions

    Unity UI background component actions that handle generic lifecycle and focus-related callbacks.
    Unlike interactable components, background components do not expose submit/toggle/value-change events.
    Extends UiComponentActions to allow optional Awake/OnEnable/Update/OnDisable/OnDestroy hooks if needed.

    Inheritance
    object
    UnityUiBackgroundComponentActions
    Namespace: Serenity.Ui.Infrastructure.Components
    Assembly: Serenity.UnityUi.Infrastructure.dll
    Syntax
    public class UnityUiBackgroundComponentActions : UiComponentActions

    Constructors

    UnityUiBackgroundComponentActions(Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>)

    Initializes background component actions with optional lifecycle and selection callbacks.
    Typically, most of these callbacks will be null as backgrounds are non-interactive.

    Declaration
    public UnityUiBackgroundComponentActions(Action<IUiComponent> awake = null, Action<IUiComponent> onEnable = null, Action<IUiComponent> update = null, Action<IUiComponent> onDisable = null, Action<IUiComponent> onDestroy = null)
    Parameters
    Type Name Description
    Action<IUiComponent> awake
    Action<IUiComponent> onEnable
    Action<IUiComponent> update
    Action<IUiComponent> onDisable
    Action<IUiComponent> onDestroy
    In this article
    © 2026 Serenity. All Rights Reserved