logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityUiDropdownComponentParameters

    Unity-specific parameters for dropdown UI components that handle expandable option selection.
    Extends selector component parameters to provide dropdown-specific configuration for expandable list navigation.
    Inherits all selector functionality while maintaining dropdown-specific behavior characteristics within the Unity UI system.

    Inheritance
    object
    UnityUiSelectorComponentParameters
    UnityUiDropdownComponentParameters
    Implements
    IUiSelectableParameters
    IUiInteractableParameters
    IComponentParameters
    IFoundationSettings
    Inherited Members
    UnityUiSelectorComponentParameters._selectedIndex
    UnityUiSelectorComponentParameters._valueType
    UnityUiSelectorComponentParameters._selectableValues
    UnityUiSelectorComponentParameters._isTranslatingValue
    UnityUiSelectorComponentParameters.SelectedIndex
    UnityUiSelectorComponentParameters.ValueType
    UnityUiSelectorComponentParameters.SelectableValues
    UnityUiSelectorComponentParameters.IsTranslatingValue
    Namespace: Serenity.Ui.Infrastructure.Components
    Assembly: Serenity.UnityUi.Infrastructure.dll
    Syntax
    public class UnityUiDropdownComponentParameters : UnityUiSelectorComponentParameters, IUiSelectableParameters, IUiInteractableParameters, IComponentParameters, IFoundationSettings

    Constructors

    UnityUiDropdownComponentParameters()

    Initializes dropdown component parameters with default configuration.
    Creates a dropdown component with default selector parameter initialization.

    Declaration
    public UnityUiDropdownComponentParameters()

    UnityUiDropdownComponentParameters(string, string, int, int, UiComponentValueType, ConfigurationEntry[], string, UiComponentAlignmentType, IFoundationViewElementFactory, AudioPlayerPlayClip, string, IUiThemeSounds, bool, bool, bool, float)

    Initializes dropdown component parameters with complete dependency injection configuration.
    Sets up the dropdown with full foundation integration including audio services, theme sounds, and view element factories.
    Provides comprehensive configuration for dropdown components within the Serenity foundation architecture.

    Declaration
    public UnityUiDropdownComponentParameters(string id, string guid, int index, int selectedIndex, UiComponentValueType valueType, ConfigurationEntry[] selectableValues, string label, UiComponentAlignmentType alignment, IFoundationViewElementFactory foundationViewElementFactory, AudioPlayerPlayClip audioPlayerPlayClip, string audioServiceId, IUiThemeSounds themeSounds, bool isTranslatingLabel, bool isTranslatingValue, bool adaptMenuWidth, float adaptMenuWidthPadding)
    Parameters
    Type Name Description
    string id

    Unique identifier for the dropdown component

    string guid

    Globally unique identifier for foundation management

    int index

    Display order index within the parent container

    int selectedIndex

    Initial selected index in the dropdown options array

    UiComponentValueType valueType

    Type of values handled by this dropdown

    ConfigurationEntry[] selectableValues

    Array of selectable key-value pairs for dropdown options

    string label

    Display text label for the dropdown

    UiComponentAlignmentType alignment

    Text and element alignment configuration

    IFoundationViewElementFactory foundationViewElementFactory

    Factory for creating foundation view elements

    AudioPlayerPlayClip audioPlayerPlayClip

    Audio playback delegate for sound effects

    string audioServiceId

    Audio service identifier for sound playback

    IUiThemeSounds themeSounds

    Theme sound definitions for UI feedback

    bool isTranslatingLabel

    Whether the label is being translated

    bool isTranslatingValue

    Whether the value is being translated

    bool adaptMenuWidth

    Whether to adapt highlight width to text content

    float adaptMenuWidthPadding

    Padding to apply when adapting highlight width to text content

    Implements

    IUiSelectableParameters
    IUiInteractableParameters
    IComponentParameters
    IFoundationSettings
    In this article
    © 2026 Serenity. All Rights Reserved