次の表は、UI Toolkit で使用できるすべてのビルトインコントロールのリファレンスです。
コントロール | 説明 | バインド可能 | データタイプ | 名前空間 | 基本クラス |
---|---|---|---|---|---|
BoundsField |
範囲値の入力フィールド | 可 | UnityEngine.Bounds | UnityEditor.UIElements | BaseField<Bounds> |
BoundsIntField |
整数の範囲値入力フィールド | 可 | UnityEngine.BoundsInt | UnityEditor.UIElements | BaseField<BoundsInt> |
Box |
単純なアウトラインのコンテナ要素 | なし | UnityEngine.UIElements | VisualElement | |
Button |
押されるとアクションを実行する、クリック可能なテキスト要素 | 可 | string | UnityEngine.UIElements | TextElement |
ColorField |
色を選ぶための色値の入力フィールド | 可 | UnityEngine.Color | UnityEditor.UIElements | BaseField<Color> |
CurveField |
カーブのプレビューを表示するカーブ値の入力フィールド | 可 | UnityEngine.AnimationCurve | UnityEditor.UIElements | BaseField<AnimationCurve> |
DoubleField |
ダブル値の入力フィールド | 可 | double | UnityEditor.UIElements | TextValueField<double> |
EnumField |
ドロップダウンを表示する enum 値の入力フィールド | 可 | Enum | UnityEditor.UIElements | BaseField<Enum> |
EnumFlagsField |
フラッグ属性を持つ enum 値の入力フィールド | 可 | Enum | UnityEngine.UIElements | BaseMaskField<Enum> |
FloatField |
float 値を入力するフィールド | 可 | float | UnityEditor.UIElements | TextValueField<float> |
Foldout |
折りたたみ可能なセクションを作成するコンテナ要素 | 可 | bool | UnityEngine.UIElements | BindableElement |
GradientField |
グラデーション値の入力フィールド | 可 | UnityEngine.Gradient | UnityEditor.UIElements | BaseField<Gradient> |
Image |
画像やテクスチャを表現できる簡易な要素 | なし | UnityEngine.UIElements | VisualElement | |
IntegerField |
int 値の入力フィールド | 可 | int | UnityEditor.UIElements | TextValueField<int> |
Label |
静的なテキスト要素 | 可 | string | UnityEngine.UIElements | TextElement |
LayerField |
レイヤーを選択するためのポップアップ選択フィールド | 可 | int | UnityEditor.UIElements | PopupField<int> |
LayerMaskField |
1 つまたは複数のレイヤーを選択できるポップアップ式の選択フィールド | 可 | int | UnityEditor.UIElements | MaskField |
ListView |
並び替え可能なリストとしてアイテムを表示することができるコンテナ要素 | 可 | IList, UnityEngine.VisualElement | UnityEngine.UIElements | BindableElement |
LongField |
long 値の入力フィールド | 可 | long | UnityEditor.UIElements | TextValueField<long> |
MaskField |
1 つまたは複数の項目を選択できるポップアップ式の選択フィールド | 可 | int | UnityEditor.UIElements | BaseMaskField<int> |
MinMaxSlider |
範囲を表すことができる float ベースのスライダー入力フィールド | 可 | UnityEngine.Vector2 | UnityEngine.UIElements | BaseField<Vector2> |
ObjectField |
UnityEngine.Object 値の入力フィールド | 可 | UnityEngine.Object | UnityEditor.UIElements | BaseField<Object> |
PopupField<T> |
ポップアップ式選択フィールド | 可 | typeof(T) | UnityEditor.UIElements | BasePopupField<T, T> |
PopupWindow |
EditorGUILayout.Popup IMGUI 要素に合うポップアップ式選択フィールド | 可 | string | UnityEngine.UIElements | TextElement |
ProgressBar |
タスクの進捗状況を表示する要素 | 可 | float, integer | UnityEditor.UIElements | BindableElement |
PropertyField |
紐づけされたシリアライズされたプロパティのタイプに基づく値の入力フィールド | 可 | various | UnityEditor.UIElements | VisualElement |
RectField |
矩形/サイズ値の入力フィールド | 可 | UnityEngine.Object | UnityEditor.UIElements | BaseCompositeField<Rect, FloatField, float> |
RectIntField |
int ベースの矩形/サイズ値の入力フィールド | 可 | UnityEngine.RectInt | UnityEditor.UIElements | BaseCompositeField<RectInt, IntegerField, int> |
RepeatButton |
押されると繰り返しアクションを実行する、クリック可能なテキスト要素 | 可 | string | UnityEngine.UIElements | TextElement |
Scroller |
水平または垂直方向のスクロールバー要素 | なし | UnityEngine.UIElements | VisualElement | |
ScrollView |
スクロール可能なフレームにコンテンツを表示するコンテナ要素 | なし | UnityEngine.UIElements | VisualElement | |
Slider |
float ベースの範囲指定スライダーの入力フィールド | 可 | float | UnityEngine.UIElements | BaseSlider<float> |
SliderInt |
int ベースの範囲指定スライダーの入力フィールド | 可 | int | UnityEngine.UIElements | BaseSlider<int> |
TagField |
タグの項目を 1 つ選択できるポップアップ式の選択フィールド | 可 | string | UnityEditor.UIElements | PopupField<string> |
TextElement |
一般的なテキスト要素 | 可 | string | UnityEngine.UIElements | BindableElement |
TextField |
string 値を入力するフィールド | 可 | string | UnityEngine.UIElements | TextInputBaseField<string> |
Toggle |
バイナリの状態を表現できるクリック可能なチェックボックス | 可 | bool | UnityEngine.UIElements | BaseField<bool> |
Toolbar |
ツールウィンドウにツールを表示することができるコンテナ要素 | なし | UnityEditor.UIElements | VisualElement | |
TreeView |
アイテムをツリー状に表示することができるコンテナ要素 | 可 | UnityEngine.UIElements | VisualElement | |
Vector2Field |
2 次元のベクトル値の入力フィールド | 可 | UnityEngine.Vector2 | UnityEditor.UIElements | BaseCompositeField<Vector2, FloatField, float> |
Vector2IntField |
2 次元の int ベースのベクトル値入力フィールド | 可 | UnityEngine.Vector2Int | UnityEditor.UIElements | BaseCompositeField<Vector2Int, IntegerField, int> |
Vector3Field |
3 次元ベクトル値入力フィールド | 可 | UnityEngine.Vector3 | UnityEditor.UIElements | BaseCompositeField<Vector3, FloatField, float> |
Vector3IntField |
3 次元 int ベースのベクトル値入力フィールド | 可 | UnityEngine.Vector3Int | UnityEditor.UIElements | BaseCompositeField<Vector3Int, IntegerField, int> |
Vector4Field |
4 次元のベクトル値の入力フィールド | 可 | UnityEngine.Vector4 | UnityEditor.UIElements | BaseCompositeField<Vector4, FloatField, float> |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.