.. default-domain:: js .. highlight:: js .. module:: UI :no-index: Input Control ============= .. class:: InputControl The base class of dropdowns, input fields, sliders and toggles, which hold a value the user can change. | Base class: :class:`UI.Control` | Derived classes: :class:`UI.Dropdown`, :class:`UI.InputField`, :class:`UI.Slider`, :class:`UI.Toggle` .. container:: inherited-members .. rubric:: Inherited Members * From :class:`UI.Control`: :meth:`getInteractable `, :meth:`setInteractable `, :meth:`getColor `, :meth:`setColor `, :meth:`getTooltip `, :meth:`setTooltip ` * From :class:`UI.Object`: :meth:`getRectTransform `, :meth:`getLayoutElement `, :meth:`getVisible `, :meth:`setVisible `, :meth:`remove ` .. method:: getChanged() setChanged(value) Whether the user has changed the control's value. :Property: Can be read or written :rtype: ``boolean`` .. note:: This property is set to true when the user changes the value, and not when a client sets it. A client script should reset the property to false in order to detect subsequent changes.