Documentation

Unity Engine

Download Unity

Unity Engine

UnityEngine.UIElementsControlsModule

The UIElements Controls module implements the built-in controls of the UIElements retained mode UI framework.
Read time 9 minutesLast updated 3 hours ago

Definition

  • Type: Module

Classes

Class

Description

AbstractBaseFieldNon-generic abstract base class for field controls.
AbstractProgressBarAbstract base class for the ProgressBar.
BaseBoolFieldA BaseBoolField is a clickable element that represents a boolean value.
BaseCompositeField<TValueType, TField, TFieldValue>This is the base class for the composite fields.
BaseField<TValueType>Abstract base class for controls.
BaseFieldMouseDraggerProvides the base class for field mouse draggers.
BaseListViewBase class for a list view, a vertically scrollable area that links to, and displays, a list of items.
BaseListViewControllerBase collection list view controller. View controllers of this type are meant to take care of data virtualized by any BaseListView inheritor.
BaseMask64FieldA control that lets users select one or more options from a list of options.
BaseMaskField<TChoice>Base class implementing the shared functionality for editing bit mask values. For more information, refer to UXML element MaskField.
BasePopupField<TValueType, TValueChoice>This is the base class for all the popup field elements. TValue and TChoice can be different, see MaskField, or the same, see PopupField
BaseSlider<TValueType>This is a base class for the Slider fields.
BaseTreeViewBase class for a tree view, a vertically scrollable area that links to, and displays, a list of items organized in a tree.
BaseTreeViewControllerBase collection tree view controller. View controllers of this type are meant to take care of data virtualized by any BaseTreeView inheritor.
BaseVerticalCollectionViewBase class for controls that display virtualized vertical content inside a scroll view.
BoundsFieldA Bounds editor field. For more information, refer to UXML element BoundsField.
BoundsIntFieldA BoundsInt field. For more information, refer to UXML element BoundsIntField.
BoxStyled visual element to match the IMGUI Box Style. For more information, refer to UXML element Box.
ButtonRepresents an interactive UI button element.
ClickableManipulator that tracks pointer events on an element and callbacks when the elements is clicked.
CollectionViewControllerBase collection view controller. View controllers are meant to take care of data virtualized by any BaseVerticalCollectionView inheritor.
ColumnRepresents a column in multi-column views such as multi-column list view or multi-column tree view. Provides the properties to define how user interacts with a column in a multi-column view, how its data and the data of each cell in this column are represented.
ColumnsRepresents a collection of columns.
ContextualMenuManipulatorManipulator that displays a contextual menu when the user clicks the right mouse button or presses the menu key on the keyboard.
DefaultMultiColumnTreeViewController<T>Default implementation of a MultiColumnTreeViewController.
DefaultTreeViewController<T>Default implementation of a TreeViewController.
DoubleFieldMakes a text field for entering doubles.
DragAndDropDataData stored during drag-and-drop operations, enabling information to be carried throughout the process.
DropdownFieldA control that allows the user to pick a choice from a list of options. For more information, refer to UXML element DropdownField.
EnumFieldMakes a dropdown for switching between enum values. For more information, refer to UXML element EnumField.
FieldMouseDragger<T>Provides dragging on a visual element to change a value field.
FloatFieldMakes a text field for entering a float. For more information, refer to UXML element FloatField.
FoldoutA Foldout control is a collapsible section of a user interface. When toggled, it expands or collapses, which hides or reveals the elements it contains.
GenericDropdownMenuGenericDropdownMenu allows you to display contextual menus with default textual options or any VisualElement.
GroupBoxThis is an enclosing container for a group of IGroupBoxOption. All group options within this container will interact together to allow a single selection, using the DefaultGroupManager. Default options are RadioButton, but users can provide other implementations. If no IGroupBox is found in the hierarchy, the default container will be the panel.
GUIDFieldMakes a field for editing an GUID.
Hash128FieldMakes a field for editing an Hash128. For more information, refer to UXML element Hash128Field.
HelpBoxMakes a help box with a message to the user. For more information, refer to UXML element HelpBox.
ImageA VisualElement representing a source texture.
IntegerFieldMakes a text field for entering an integer. For more information, refer to UXML element LongField.
KeyboardNavigationManipulatorProvides a default implementation for translating input device specific events to higher level navigation operations as commonly possible with a keyboard.
LabelProvides an Element displaying text. For more information, refer to UXML element Label.
ListViewA ListView is a vertically scrollable area that links to, and displays, a list of items.
ListViewControllerList view controller. View controllers of this type are meant to take care of data virtualized by any ListView inheritor.
LongFieldMakes a text field for entering long integers. For more information, refer to UXML element LongField.
Mask64FieldThe Mask64Field is a control that lets users select one or more options from a list of 64-bit mask options.
MaskFieldThe MaskField is a control that lets users select one or more options from a list of options. For more information, refer to UXML element MaskField.
MinMaxSliderA min/max slider containing a representation of a range. For more information, refer to UXML element MinMaxSlider.
MultiColumnControllerThe default controller for a multi column view. Takes care of adding the MultiColumnCollectionHeader and reacting to the various callbacks.
MultiColumnListViewA list view with multi column support. For more information, refer to MultiColumnListView.
MultiColumnListViewControllerMulti-column list view controller. View controllers of this type are meant to take care of data virtualized by any MultiColumnListView inheritor.
MultiColumnTreeViewA tree view with multi column support. For more information, refer to MultiColumnTreeView.
MultiColumnTreeViewControllerMulti-column tree view controller. View controllers of this type are meant to take care of data virtualized by any MultiColumnTreeView inheritor.
PanelExtensionsProvides extension methods for Panel utilities.
PopupField<T>Generic popup selection field.
PopupWindowStyled visual text element. This element doesn't have any functionality. It's just a container with a border and a title, rather than a window or popup. For more information, refer to UXML element PopupWindow.
ProgressBarA control that displays the progress between a lower and upper bound value. For more information, refer to UXML element ProgressBar.
QuaternionEulerFieldA Quaternion field that edits the rotation as X, Y and Z euler angles, in degrees. As in the Transform inspector, angles that were not typed in the field are shown between -180 and 180. For more information, refer to UXML element QuaternionEulerField.
RadioButtonA control that allows users to select a single option inside a RadioButtonGroup. For more information, refer to UXML element RadioButton.
RadioButtonGroupA control that allows single selection out of a logical group of RadioButton elements. Selecting one will deselect the others. For more information, refer to UXML element RadioButtonGroup.
RectFieldA Rect field. For more information, refer to UXML element RectField.
RectIntFieldA RectInt field. For more information, refer to UXML element RectIntField.
RepeatButtonA button that executes an action repeatedly while it is pressed. For more information, refer to UXML element RepeatButton.
ScrollerA vertical or horizontal scrollbar. For more information, refer to UXML element Scroller.
ScrollViewDisplays its contents inside a scrollable frame. For more information, refer to the ScrollView user manual page.
SliderA slider containing floating point values.
SliderIntA slider containing Integer discrete values. For more information, refer to UXML element SliderInt.
SortColumnDescriptionThis represents a description on what column to sort and in which order.
SortColumnDescriptionsThis represents a collection or SortColumnDescriptions in multi SortColumnDescription views.
TabCreates a tab to organize content on different screens.
TabViewCreates a tab view that groups a one or more Tab elements.
TextFieldA TextField accepts and displays text input. For more information, refer to UXML element TextField.
TextInputBaseField<TValueType>Abstract base class used for all text-based fields.
TextValueField<TValueType>Base class for text fields.
ToggleA Toggle is a clickable element that represents a boolean value.
ToggleButtonGroupA control that allows single or multiple selection out of a logical group of Button elements.
ToggleButtonGroupStatePropertiesAttributeDefines how a serialized ToggleButtonGroupState will be initialized in the inspector.
TreeViewA TreeView is a vertically scrollable area that links to, and displays, a list of items organized in a tree.
TreeViewControllerTree view controller. View controllers of this type are meant to take care of data virtualized by any TreeView inheritor.
TreeViewExpansionChangedArgsA data structure for the tree view item expansion event.
TwoPaneSplitViewA SplitView that contains two resizable panes. One pane is fixed-size while the other pane has flex-grow style set to 1 to take all remaining space. The border between the panes is draggable to resize both panes. Both horizontal and vertical modes are supported. Requires exactly two child elements to operate.
UnsignedIntegerFieldMakes a text field for entering an unsigned integer. For more information, refer to UXML element UnsignedIntegerField.
UnsignedLongFieldMakes a text field for entering unsigned long integers. For more information, refer to UXML element UnsignedLongField.
Vector2FieldA Vector2 field. For more information, refer to UXML element Vector2Field.
Vector2IntFieldA Vector2Int field. For more information, refer to UXML element Vector2IntField.
Vector3FieldA Vector3 field. For more information, refer to UXML element Vector3Field.
Vector3IntFieldA Vector3Int field. For more information, refer to UXML element Vector3IntField.
Vector4FieldA Vector4 field. For more information, refer to UXML element Vector4Field.

Structs

Struct

Description

CanStartDragArgsInformation about a drag-and-drop operation that is about to start. See BaseVerticalCollectionView.canStartDrag.
HandleDragAndDropArgsInformation about a drag-and-drop operation in progress. See BaseVerticalCollectionView.dragAndDropUpdate and BaseVerticalCollectionView.handleDrop.
SetupDragAndDropArgsInformation about a drag-and-drop operation that just started. You can use it to store generic data for the rest of the drag. See BaseVerticalCollectionView.setupDragAndDrop.
StartDragArgsProvides entry points to initialize the new drag-and-drop operation.
ToggleButtonGroupStateThe structure that keeps track of the Button states inside a ToggleButtonGroup.
TreeViewItemData<T>Item structure provided to a TreeView using the default implementation. For more information on usage, refer to TreeView and Create list and tree views.

Enums

Enum

Description

AlternatingRowBackgroundOptions to display alternating background colors for collection view rows.
BindingSourceSelectionModeOption to change the data source assignation when using Data Binding in collection views.
CollectionVirtualizationMethodOptions to change the virtualization method used by the collection view to display its content.
ColumnSortingModeDefines the sorting mode of a MultiColumnListView or MultiColumnTreeView.
DeltaSpeedSpeed at which the value changes for a given input device delta.
DragAndDropPositionPosition where the drop operation occurs.
DragVisualModeThe status of a drag-and-drop operation.
HelpBoxMessageTypeUser message types.
KeyboardNavigationOperationRepresents an operation that the user is trying to accomplish through a specific input mechanism.
ListViewReorderModeOptions to change the drag-and-drop mode for items in the ListView.
ScrollerVisibilityOptions for controlling the visibility of scroll bars in the ScrollView.
ScrollViewModeConfigurations of the ScrollView to influence the layout of its contents and how scrollbars appear. ScrollView.mode
SortDirectionThe sort direction.
TwoPaneSplitViewOrientationDetermines the orientation of the two resizable panes.

Interfaces

Interface

Description

IMixedValueSupportAn interface that allows value fields to visually represent a mixed value.
IValueField<T>Base interface for UIElements text value fields.