logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UiComponentActions

    Implementation of IUiComponentActions to handle UI component lifecycle actions.

    Inheritance
    object
    UiComponentActions
    UiInteractableComponentActions
    Implements
    IUiComponentActions
    IComponentActions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Ui.Application.Components
    Assembly: Serenity.Ui.Application.dll
    Syntax
    public class UiComponentActions : IUiComponentActions, IComponentActions

    Constructors

    UiComponentActions()

    Initializes a new instance of the UiComponentActions class with no lifecycle actions.

    Declaration
    public UiComponentActions()

    UiComponentActions(Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>, Action<IUiComponent>)

    Initializes a new instance of the UiComponentActions class with the specified lifecycle actions.

    Declaration
    public UiComponentActions(Action<IUiComponent> awake, Action<IUiComponent> onEnable, Action<IUiComponent> update, Action<IUiComponent> onDisable, Action<IUiComponent> onDestroy)
    Parameters
    Type Name Description
    Action<IUiComponent> awake

    The action to be executed when the UI component is awakened.

    Action<IUiComponent> onEnable

    The action to be executed when the UI component is enabled.

    Action<IUiComponent> update

    The action to be executed on each update of the UI component.

    Action<IUiComponent> onDisable

    The action to be executed when the UI component is disabled.

    Action<IUiComponent> onDestroy

    The action to be executed when the UI component is destroyed.

    Fields

    _awake

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

    The action to be executed when the UI component is awakened.

    _onDestroy

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

    The action to be executed when the UI component is destroyed.

    _onDisable

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

    The action to be executed when the UI component is disabled.

    _onEnable

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

    The action to be executed when the UI component is enabled.

    _update

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

    The action to be executed on each update of the UI component.

    Properties

    Awake

    The action to be executed when the UI component is destroyed.

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

    Action that takes an IUiComponent as a parameter and returns void.

    OnDestroy

    The action to be executed when the UI component is destroyed.

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

    Action that takes an IUiComponent as a parameter and returns void.

    OnDisable

    The action to be executed when the UI component is disabled.

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

    Action that takes an IUiComponent as a parameter and returns void.

    OnEnable

    The action to be executed when the UI component is enabled.

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

    Action that takes an IUiComponent as a parameter and returns void.

    Update

    The action to be executed on each update of the UI component.

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

    Action that takes an IUiComponent as a parameter and returns void.

    Implements

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