Version: Unity 6.0 (6000.0)
言語 : 日本語
ロジックを使用した UXML ドキュメントのカプセル化
BindableElement

ビジュアル要素リファレンス

以下の表には、UnityEngine.UIElements と UnityEditor.UIElements 名前空間で使用可能なビジュアル要素がまとめられています。

基本要素

要素 名前空間 C# クラス
BindableElement UnityEngine.UIElements UnityEngine.UIElements.BindableElement
VisualElement UnityEngine.UIElements UnityEngine.UIElements.VisualElement

# ビルトインコントロール

次の表は、UI Toolkit で使用できるすべてのビルトインコントロールのリファレンスです。

要素 バインド可否 データ型 名前空間 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
RenderingLayerMaskField 可 System.UInt32 UnityEditor.UIElements UnityEditor.UIElements.RenderingLayerMaskField
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
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

C# のみのコントロール

以下の表は、C# でのみ使用でき、UXML 表現を持たないコントロールの一覧です。

名前 バインド可能 名前空間 C# クラス
GenericDropdownMenu いいえ UnityEngine.UIElements UnityEngine.UIElements.GenericDropdownMenu

テンプレート (Template)

要素 説明 名前空間 許可された子要素 属性
Template Instance 要素を使ってインスタンス化できる別の UXML テンプレートへの参照 UnityEngine.UIElements なし name: この要素の固有の文字列識別子
path: ロードする UXML ファイルのパス
Instance Template のインスタンス UnityEngine.UIElements なし template: インスタンス化する Template の name

UxmlObject 属性

要素 説明 名前空間 許可された子要素 属性
Columns 列の説明が含まれます。MultiColumnListView や MultiColumnTreeView など、それをサポートする親の子である必要があります。 UnityEngine.UIElements Column なし
Column 列の説明です。Columns の子である必要があります。 UnityEngine.UIElements なし name: コード内のこの列の名前
title: この列のヘッダーに表示される名前
width: この列のデフォルト幅 (ピクセル単位)
ロジックを使用した UXML ドキュメントのカプセル化
BindableElement