logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityMenuLifecycleSignalsGui

    Draws the "Lifecycle Signals" section of UnityMenuSettingsDefinitionEditor: the OnShow/OnHide/OnCancel reorderable signal lists plus the single "On Submit" signal slot. Extracted from that editor to keep it under the project's file-size guidance — this collaborator owns no serialized state of its own, only the UnityEditorInternal.ReorderableList instances it builds from the owning editor's UnityEditor.SerializedObject.

    Inheritance
    object
    UnityMenuLifecycleSignalsGui
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Menu.Infrastructure.Settings.Editor
    Assembly: Serenity.UnityMenu.Infrastructure.Editor.dll
    Syntax
    public sealed class UnityMenuLifecycleSignalsGui

    Constructors

    UnityMenuLifecycleSignalsGui(SerializedObject, Object, Action, float)

    Declaration
    public UnityMenuLifecycleSignalsGui(SerializedObject serializedObject, Object target, Action repaint, float headerWidth)
    Parameters
    Type Name Description
    SerializedObject serializedObject

    The owning editor's UnityEditor.SerializedObject.

    Object target

    The owning editor's target, marked dirty after a signal is added.

    Action repaint

    The owning editor's Repaint, called after a signal is added.

    float headerWidth

    Width for the section header, matching the owning editor's other section headers.

    Methods

    Draw()

    Renders the OnShow, OnHide, and OnCancel signal collections as standard Unity reorderable lists, matching the visual style used by the Options list in the owning editor, followed by the single "On Submit" signal slot.
    Drag-and-drop reordering is handled natively by ReorderableList; runtime dispatch reads the serialized array in index order so user-configured ordering is preserved.

    Declaration
    public void Draw()
    In this article
    © 2026 Serenity. All Rights Reserved