The following tables outline the visual elementsA node of a visual tree that instantiates or derives from the C# VisualElement
class. You can style the look, define the behaviour, and display it on screen as part of the UI. More info
See in Glossary available in the UnityEngine.UIElements
and UnityEditor.UIElements
namespaces.
Element | Namespace | C# class |
---|---|---|
BindableElement |
UnityEngine.UIElements |
UnityEngine.UIElements.BindableElement |
VisualElement |
UnityEngine.UIElements |
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.
The following table lists the controls that are only available in C# and do not have a UXML representation.
Name | Bindable | Namespace | C# class |
---|---|---|---|
GenericDropdownMenu |
No | UnityEngine.UIElements |
UnityEngine.UIElements.GenericDropdownMenu |
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 |
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 |