The best way to learn how to structure UI is to try examples. The following examples demonstrates how to use built-in controls, and create and use custom controls in your UI.
トピック | 説明 |
---|---|
相対位置決めと絶対位置決め C# の例 | C# で UI をレイアウトするには、相対配置と絶対配置を使用します。 |
トピック | 説明 |
---|---|
リストビューとツリービューの作成 | ListView、TreeView、MultiColumnListView、MultiColumnTreeView を使用して、リストビューとツリービューを作成します。 |
複雑なリストビューの作成 | ListView を使用して、文字のリストを持つカスタムエディターウィンドウを作成します。 |
リストビューのランタイム UI を作成する | ListView を使って、簡易なキャラクター選択画面のランタイム UI を作成します。 |
トピック | 説明 |
---|---|
ScrollView 内でコンテンツを折り返す | スクロールビュー内でコンテンツを折り返すには、スタイルを使用します。 |
トピック | 説明 |
---|---|
ランタイム用にタブメニューを作成する | Label を使用してタブメニューを作成します。 |
トピック | 説明 |
---|---|
ポップアップウィンドウの作成 |
UnityEditor.PopupWindow を使ってポップアップウィンドウを作成します。 |
トピック | 説明 |
---|---|
Toggle を使って条件付き UI を作成する | Toggle を使用してエディターウィンドウに条件付き UI を作成します。 |
トピック | 説明 |
---|---|
2 つの属性を持つカスタムコントロールの作成 | 2 つの属性を持つ単純なカスタムコントロールを作成し、カスタムコントロールを UXML と UI ビルダーに公開します。 |
スライドトグルカスタムコントロールの作成 | スイッチのようなトグルカスタムコントロールを作成します。 |
放射状の進捗インジケーターを作成する | 0 から 100 までの浮動小数点数を表示するカスタムコントロールを作成します。 |
バインド可能なカスタムコントロールの作成 | double データ型のプロパティにバインドするカスタムコントロールを作成します。 |
カスタムコントロール用のカスタムスタイルを作成する | USS から 2 色を読み取り、それを使ってテクスチャを生成するカスタムコントロールを作成します。 |
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.