包含此页的版本:
不含此页的版本:
下表是为 UI 工具包提供的所有内置控件的参考。
BoundsField
UnityEngine.Bounds
UnityEngine.UIElements
VisualElement
UnityEngine.UIElements.BoundsField
BoundsIntField
UnityEngine.BoundsInt
UnityEngine.UIElements.BoundsIntField
Box
UnityEngine.UIElements.Box
Button
string
UnityEngine.UIElements.Button
ColorField
UnityEngine.Color
UnityEditor.UIElements
UnityEditor.UIElements.ColorField
CurveField
UnityEngine.AnimationCurve
UnityEditor.UIElements.CurveField
DoubleField
double
UnityEngine.UIElements.DoubleField
DropdownField
UnityEngine.UIElements.DropdownField
EnumField
Enum
UnityEngine.UIElements.EnumField
EnumFlagsField
UnityEditor.UIElements.EnumFlagsField
FloatField
float
UnityEngine.UIElements.FloatField
Foldout
bool
UnityEngine.UIElements.Foldout
GradientField
UnityEngine.Gradient
UnityEditor.UIElements.GradientField
GroupBox
UnityEngine.UIElements.GroupBox
Hash128Field
UnityEngine.Hash128
UnityEngine.UIElements.Hash128Field
HelpBox
UnityEngine.UIElements.HelpBox
IMGUIContainer
UnityEngine.UIElements.IMGUIContainer
Image
UnityEngine.UIElements.Image
InspectorElement
UnityEditor.UIElements.InspectorElement
IntegerField
int
UnityEngine.UIElements.IntegerField
Label
UnityEngine.UIElements.Label
LayerField
UnityEditor.UIElements.LayerField
LayerMaskField
UnityEditor.UIElements.LayerMaskField
ListView
IList
UnityEngine.UIElements.ListView
LongField
long
UnityEngine.UIElements.LongField
MaskField
UnityEditor.UIElements.MaskField
MinMaxSlider
UnityEngine.Vector2
UnityEngine.UIElements.MinMaxSlider
MultiColumnListView
UnityEngine.UIElements.MultiColumnListView
MultiColumnTreeView
UnityEngine.UIElements.MultiColumnTreeView
ObjectField
UnityEngine.Object
UnityEditor.UIElements.ObjectField
PopupWindow
UnityEngine.UIElements.PopupWindow
ProgressBar
UnityEngine.UIElements.ProgressBar
PropertyField
UnityEditor.UIElements.PropertyField
RadioButton
UnityEngine.UIElements.RadioButton
RadioButtonGroup
UnityEngine.UIElements.RadioButtonGroup
RectField
UnityEngine.Rect
UnityEngine.UIElements.RectField
RectIntField
UnityEngine.RectInt
UnityEngine.UIElements.RectIntField
RepeatButton
UnityEngine.UIElements.RepeatButton
ScrollView
UnityEngine.UIElements.ScrollView
Scroller
UnityEngine.UIElements.Scroller
Slider
UnityEngine.UIElements.Slider
SliderInt
UnityEngine.UIElements.SliderInt
TagField
UnityEditor.UIElements.TagField
TextElement
UnityEngine.UIElements.TextElement
TextField
UnityEngine.UIElements.TextField
Toggle
UnityEngine.UIElements.Toggle
Toolbar
UnityEditor.UIElements.Toolbar
ToolbarBreadcrumbs
UnityEditor.UIElements.ToolbarBreadcrumbs
ToolbarButton
UnityEditor.UIElements.ToolbarButton
ToolbarMenu
UnityEditor.UIElements.ToolbarMenu
ToolbarPopupSearchField
UnityEditor.UIElements.ToolbarPopupSearchField
ToolbarSearchField
UnityEditor.UIElements.ToolbarSearchField
ToolbarSpacer
UnityEditor.UIElements.ToolbarSpacer
ToolbarToggle
UnityEditor.UIElements.ToolbarToggle
TreeView
UnityEngine.UIElements.TreeView
TwoPaneSplitView
UnityEngine.UIElements.TwoPaneSplitView
Vector2Field
UnityEngine.UIElements.Vector2Field
Vector2IntField
UnityEngine.Vector2Int
UnityEngine.UIElements.Vector2IntField
Vector3Field
UnityEngine.Vector3
UnityEngine.UIElements.Vector3Field
Vector3IntField
UnityEngine.Vector3Int
UnityEngine.UIElements.Vector3IntField
Vector4Field
UnityEngine.Vector4
UnityEngine.UIElements.Vector4Field