Version: 2023.2
언어: 한국어
로직으로 UXML 문서 캡슐화
UXML 요소 BindableElement

UXML 요소 레퍼런스

다음 표에는 UnityEngine.UIElementsUnityEditor.UIElements 네임스페이스에서 이용 가능한 UXML 요소가 간략히 설명되어 있습니다.

기본 요소

Element 네임스페이스 C# 클래스
BindableElement UnityEngine.UIElements UnityEngine.UIElements.BindableElement
VisualElement UnityEngine.UIElements UnityEngine.UIElements.VisualElement

빌트인 컨트롤

다음 표는 UI 툴킷에서 사용할 수 있는 모든 빌트인 컨트롤의 레퍼런스입니다.

Element 바인드 가능 데이터 타입 네임스페이스 C# 클래스
BoundsField 지원 UnityEngine.Bounds UnityEngine.UIElements UnityEngine.UIElements.BoundsField
BoundsIntField 지원 UnityEngine.BoundsInt UnityEngine.UIElements UnityEngine.UIElements.BoundsIntField
Box UnityEngine.UIElements UnityEngine.UIElements.Box
Button 지원 string UnityEngine.UIElements UnityEngine.UIElements.Button
ColorField 지원 UnityEngine.Color UnityEditor.UIElements UnityEditor.UIElements.ColorField
CurveField 지원 UnityEngine.AnimationCurve UnityEditor.UIElements UnityEditor.UIElements.CurveField
DoubleField 지원 double UnityEngine.UIElements UnityEngine.UIElements.DoubleField
DropdownField 지원 string UnityEngine.UIElements UnityEngine.UIElements.DropdownField
EnumField 지원 Enum UnityEngine.UIElements UnityEngine.UIElements.EnumField
EnumFlagsField 지원 Enum UnityEditor.UIElements UnityEditor.UIElements.EnumFlagsField
FloatField 지원 float UnityEngine.UIElements UnityEngine.UIElements.FloatField
Foldout 지원 boolean UnityEngine.UIElements UnityEngine.UIElements.Foldout
GradientField 지원 UnityEngine.Gradient UnityEditor.UIElements UnityEditor.UIElements.GradientField
GroupBox 지원 UnityEngine.UIElements UnityEngine.UIElements.GroupBox
Hash128Field 지원 UnityEngine.Hash128 UnityEngine.UIElements UnityEngine.UIElements.Hash128Field
HelpBox UnityEngine.UIElements UnityEngine.UIElements.HelpBox
IMGUIContainer UnityEngine.UIElements UnityEngine.UIElements.IMGUIContainer
Image UnityEngine.UIElements UnityEngine.UIElements.Image
InspectorElement 지원 UnityEditor.UIElements UnityEditor.UIElements.InspectorElement
IntegerField 지원 int UnityEngine.UIElements UnityEngine.UIElements.IntegerField
Label 지원 string UnityEngine.UIElements UnityEngine.UIElements.Label
LayerField 지원 int UnityEditor.UIElements UnityEditor.UIElements.LayerField
LayerMaskField 지원 int UnityEditor.UIElements UnityEditor.UIElements.LayerMaskField
ListView 지원 IList UnityEngine.UIElements UnityEngine.UIElements.ListView
LongField 지원 long UnityEngine.UIElements UnityEngine.UIElements.LongField
MaskField 지원 int UnityEditor.UIElements UnityEditor.UIElements.MaskField
MinMaxSlider 지원 UnityEngine.Vector2 UnityEngine.UIElements UnityEngine.UIElements.MinMaxSlider
MultiColumnListView 지원 UnityEngine.UIElements UnityEngine.UIElements.MultiColumnListView
MultiColumnTreeView 지원 UnityEngine.UIElements UnityEngine.UIElements.MultiColumnTreeView
ObjectField 지원 UnityEngine.Object UnityEditor.UIElements UnityEditor.UIElements.ObjectField
PopupWindow 지원 string UnityEngine.UIElements UnityEngine.UIElements.PopupWindow
ProgressBar 지원 float UnityEngine.UIElements UnityEngine.UIElements.ProgressBar
PropertyField UnityEditor.UIElements UnityEditor.UIElements.PropertyField
RadioButton 지원 boolean UnityEngine.UIElements UnityEngine.UIElements.RadioButton
RadioButtonGroup 지원 int UnityEngine.UIElements UnityEngine.UIElements.RadioButtonGroup
RectField 지원 UnityEngine.Rect UnityEngine.UIElements UnityEngine.UIElements.RectField
RectIntField 지원 UnityEngine.RectInt UnityEngine.UIElements UnityEngine.UIElements.RectIntField
RepeatButton 지원 string UnityEngine.UIElements UnityEngine.UIElements.RepeatButton
ScrollView UnityEngine.UIElements UnityEngine.UIElements.ScrollView
Scroller UnityEngine.UIElements UnityEngine.UIElements.Scroller
Slider 지원 float UnityEngine.UIElements UnityEngine.UIElements.Slider
SliderInt 지원 int UnityEngine.UIElements UnityEngine.UIElements.SliderInt
Tab UnityEngine.UIElements UnityEngine.UIElements.Tab
TabView UnityEngine.UIElements UnityEngine.UIElements.TabView
TagField 지원 string UnityEditor.UIElements UnityEditor.UIElements.TagField
TemplateContainer 지원 UnityEngine.UIElements UnityEngine.UIElements.TemplateContainer
TextElement 지원 string UnityEngine.UIElements UnityEngine.UIElements.TextElement
TextField 지원 string UnityEngine.UIElements UnityEngine.UIElements.TextField
Toggle 지원 boolean UnityEngine.UIElements UnityEngine.UIElements.Toggle
ToggleButtonGroup 지원 UnityEngine.UIElements.ToggleButtonGroupState UnityEngine.UIElements UnityEngine.UIElements.ToggleButtonGroup
Toolbar UnityEditor.UIElements UnityEditor.UIElements.Toolbar
ToolbarBreadcrumbs UnityEditor.UIElements UnityEditor.UIElements.ToolbarBreadcrumbs
ToolbarButton 지원 UnityEditor.UIElements UnityEditor.UIElements.ToolbarButton
ToolbarMenu 지원 UnityEditor.UIElements UnityEditor.UIElements.ToolbarMenu
ToolbarPopupSearchField string UnityEditor.UIElements UnityEditor.UIElements.ToolbarPopupSearchField
ToolbarSearchField string UnityEditor.UIElements UnityEditor.UIElements.ToolbarSearchField
ToolbarSpacer UnityEditor.UIElements UnityEditor.UIElements.ToolbarSpacer
ToolbarToggle 지원 boolean UnityEditor.UIElements UnityEditor.UIElements.ToolbarToggle
TreeView 지원 UnityEngine.UIElements UnityEngine.UIElements.TreeView
TwoPaneSplitView UnityEngine.UIElements UnityEngine.UIElements.TwoPaneSplitView
UnsignedIntegerField 지원 System.UInt32 UnityEngine.UIElements UnityEngine.UIElements.UnsignedIntegerField
UnsignedLongField 지원 System.UInt64 UnityEngine.UIElements UnityEngine.UIElements.UnsignedLongField
Vector2Field 지원 UnityEngine.Vector2 UnityEngine.UIElements UnityEngine.UIElements.Vector2Field
Vector2IntField 지원 UnityEngine.Vector2Int UnityEngine.UIElements UnityEngine.UIElements.Vector2IntField
Vector3Field 지원 UnityEngine.Vector3 UnityEngine.UIElements UnityEngine.UIElements.Vector3Field
Vector3IntField 지원 UnityEngine.Vector3Int UnityEngine.UIElements UnityEngine.UIElements.Vector3IntField
Vector4Field 지원 UnityEngine.Vector4 UnityEngine.UIElements UnityEngine.UIElements.Vector4Field

템플릿

Element 설명 네임스페이스 허용되는 자식 요소 속성
Template Instance 요소를 사용하여 인스턴스화할 수 있는 또 다른 UXML 템플릿에 대한 레퍼런스입니다. UnityEngine.UIElements None name: 이 요소에 대한 고유한 문자열 식별자
path: 로드할 UXML 파일의 경로
Instance Template의 인스턴스 UnityEngine.UIElements None template: 인스턴스화할 Templatename

UxmlObject 속성

Element 설명 네임스페이스 허용되는 자식 요소 속성
Columns 열 설명을 포함합니다. MultiColumnListView 또는 MultiColumnTreeView와 같이 지원하는 부모의 자식이어야 합니다. UnityEngine.UIElements Column None
Column 열을 설명합니다.Columns의 자식이어야 합니다. UnityEngine.UIElements None name:코드에 있는 이 열의 이름
title:이 열의 헤더에 표시된 이름
width:이 열의 기본 너비(픽셀)
로직으로 UXML 문서 캡슐화
UXML 요소 BindableElement