The following tables outline the UXML elements available in the UnityEngine.UIElements
and UnityEditor.UIElements
namespaces.
Element | Namespace | Permitted child elements | C# class |
---|---|---|---|
BindableElement |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.BindableElement |
VisualElement |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.VisualElement |
The following table is a reference of all built-in controls available for UI(User Interface) Allows a user to interact with your application. Unity currently supports three UI systems. More info
See in Glossary Toolkit.
Element | Bindable | Data type | Namespace | Permitted child elements | C# class |
---|---|---|---|---|---|
BoundsField |
Yes | UnityEngine.Bounds |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.BoundsField |
BoundsIntField |
Yes | UnityEngine.BoundsInt |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.BoundsIntField |
Box |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.Box |
||
Button |
Yes | string |
UnityEngine.UIElements |
None | UnityEngine.UIElements.Button |
ColorField |
Yes | UnityEngine.Color |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.ColorField |
CurveField |
Yes | UnityEngine.AnimationCurve |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.CurveField |
DoubleField |
Yes | double |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.DoubleField |
DropdownField |
Yes | string |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.DropdownField |
EnumField |
Yes | Enum |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.EnumField |
EnumFlagsField |
Yes | Enum |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.EnumFlagsField |
FloatField |
Yes | float |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.FloatField |
Foldout |
Yes | bool |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.Foldout |
GradientField |
Yes | UnityEngine.Gradient |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.GradientField |
GroupBox |
Yes | UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.GroupBox |
|
Hash128Field |
Yes | UnityEngine.Hash128 |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.Hash128Field |
HelpBox |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.HelpBox |
||
IMGUIContainer |
UnityEngine.UIElements |
None | UnityEngine.UIElements.IMGUIContainer |
||
Image |
UnityEngine.UIElements |
None | UnityEngine.UIElements.Image |
||
InspectorElement |
Yes | UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.InspectorElement |
|
IntegerField |
Yes | int |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.IntegerField |
Label |
Yes | string |
UnityEngine.UIElements |
None | UnityEngine.UIElements.Label |
LayerField |
Yes | int |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.LayerField |
LayerMaskField |
Yes | int |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.LayerMaskField |
ListView |
Yes | IList |
UnityEngine.UIElements |
None | UnityEngine.UIElements.ListView |
LongField |
Yes | long |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.LongField |
MaskField |
Yes | int |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.MaskField |
MinMaxSlider |
Yes | UnityEngine.Vector2 |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.MinMaxSlider |
MultiColumnListView |
Yes | UnityEngine.UIElements |
None | UnityEngine.UIElements.MultiColumnListView |
|
MultiColumnTreeView |
Yes | UnityEngine.UIElements |
None | UnityEngine.UIElements.MultiColumnTreeView |
|
ObjectField |
Yes | UnityEngine.Object |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.ObjectField |
PopupWindow |
Yes | string |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.PopupWindow |
ProgressBar |
Yes | float |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.ProgressBar |
PropertyField |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.PropertyField |
||
RadioButton |
Yes | bool |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.RadioButton |
RadioButtonGroup |
Yes | int |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.RadioButtonGroup |
RectField |
Yes | UnityEngine.Rect |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.RectField |
RectIntField |
Yes | UnityEngine.RectInt |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.RectIntField |
RepeatButton |
Yes | string |
UnityEngine.UIElements |
None | UnityEngine.UIElements.RepeatButton |
ScrollView |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.ScrollView |
||
Scroller |
UnityEngine.UIElements |
None | UnityEngine.UIElements.Scroller |
||
Slider |
Yes | float |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.Slider |
SliderInt |
Yes | int |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.SliderInt |
TagField |
Yes | string |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.TagField |
TextElement |
Yes | string |
UnityEngine.UIElements |
None | UnityEngine.UIElements.TextElement |
TextField |
Yes | string |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.TextField |
Toggle |
Yes | bool |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.Toggle |
Toolbar |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.Toolbar |
||
ToolbarBreadcrumbs |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.ToolbarBreadcrumbs |
||
ToolbarButton |
Yes | UnityEditor.UIElements |
None | UnityEditor.UIElements.ToolbarButton |
|
ToolbarMenu |
Yes | UnityEditor.UIElements |
None | UnityEditor.UIElements.ToolbarMenu |
|
ToolbarPopupSearchField |
string |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.ToolbarPopupSearchField |
|
ToolbarSearchField |
string |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.ToolbarSearchField |
|
ToolbarSpacer |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.ToolbarSpacer |
||
ToolbarToggle |
Yes | bool |
UnityEditor.UIElements |
Any number of VisualElement
|
UnityEditor.UIElements.ToolbarToggle |
TreeView |
Yes | UnityEngine.UIElements |
None | UnityEngine.UIElements.TreeView |
|
TwoPaneSplitView |
UnityEngine.UIElements |
None | UnityEngine.UIElements.TwoPaneSplitView |
||
UnsignedIntegerField |
Yes | System.UInt32 |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.UnsignedIntegerField |
UnsignedLongField |
Yes | System.UInt64 |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.UnsignedLongField |
Vector2Field |
Yes | UnityEngine.Vector2 |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.Vector2Field |
Vector2IntField |
Yes | UnityEngine.Vector2Int |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.Vector2IntField |
Vector3Field |
Yes | UnityEngine.Vector3 |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.Vector3Field |
Vector3IntField |
Yes | UnityEngine.Vector3Int |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.Vector3IntField |
Vector4Field |
Yes | UnityEngine.Vector4 |
UnityEngine.UIElements |
Any number of VisualElement
|
UnityEngine.UIElements.Vector4Field |
Element | Description | Namespace | Permitted child elements | Attributes |
---|---|---|---|---|
Template |
A reference to another UXML template that can be instantiated using the Instance element. |
UnityEngine.UIElements |
None |
name : A unique string identifier for this elementpath : The path of the UXML file to load |
Instance |
Instance of a Template
|
UnityEngine.UIElements |
None |
template : The name of the Template to instantiate |
TemplateContainer |
A template container. | UnityEngine.UIElements |
None | All attributes of BindableElement template : A string identifier for this template |
Element | Description | Namespace | Permitted child elements | Attributes |
---|---|---|---|---|
Columns |
Contains descriptions of columns. Must be a child of a parent that supports it, such as MultiColumnListView or MultiColumnTreeView . |
UnityEngine.UIElements |
Column |
None |
Column |
Describes a column. Must be a child of Columns . |
UnityEngine.UIElements |
None |
name : The name of this column in codetitle : The name displayed in the header of this columnwidth : The default width of this column in pixels |
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Some 3rd party video providers do not allow video views without targeting cookies. If you are experiencing difficulty viewing a video, you will need to set your cookie preferences for targeting to yes if you wish to view videos from these providers. Unity does not control this.
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.