.. default-domain:: cs .. highlight:: csharp .. namespace:: KRPC.Client.Services.UI Dropdown ======== .. class:: Dropdown A control for choosing one of a list of options, which are shown when it is clicked. Added to a :type:`Canvas` or a :type:`Panel`. | Base class: :type:`InputControl` .. container:: inherited-members .. rubric:: Inherited Members * From :type:`InputControl`: :prop:`Changed ` * From :type:`Control`: :prop:`Interactable `, :prop:`Color `, :prop:`Tooltip ` * From :type:`Object`: :prop:`RectTransform `, :prop:`LayoutElement `, :prop:`Visible `, :meth:`Remove ` .. property:: System.Collections.Generic.IList Options { get; set; } The options that the dropdown offers. :Game Scenes: All .. note:: Setting the options resets the selection to the first of them, or to nothing when the list is empty. .. property:: int SelectedIndex { get; set; } The position in :prop:`Dropdown.Options` of the option that is chosen. :Game Scenes: All .. note:: Zero while the dropdown has no options, as there is nothing to choose.